Re: [Bluez-devel] audio problems with a2play

Marcel Holtmann
2004-11-22T18:39:27Z

Hi Brad,

> The iPhono stopped producing recognizable sound using a2play a few days
> ago... but even the most successful transfers with a2play have been
> mixed with static.

last time I tested it, it worked quite well.

> I'm convinced we need a media payload header. Page 23 of the A2DP spec
> shows how the media payload header should look.
>
> I tried changing a2play to send media_payload_header instead of
> sbc_frame_header and I got "quiet" noise when I did that. I tried
> various frame counts with no luck.
>
> I need to get a better idea of what is going on...
>
> * which frame exactly is a2play's calc_frame_length measuring? Is it the
> same "sbc frame" that they're talking about in a2dp p.24?

It is the SBC frame length without the 4 byte SBC header.

> * how did you decide to put 2 0xff bytes in the CSRC section of the
> media packet header? Why isn't this CSRC a multiple of 4 bytes like the
> spec suggests on avdtp p. 46?
>
> * what is the CSRC? (spec says "The CSRC list identifies the
> contributing sources for the payload contained in this packet")

Actually I already tried to follow the AVDTP and A2DP specification, but
with no luck. My Aiptek headphone doesn't want to play nicely and I have
no clue how they got this thing qualified by the Bluetooth SIG.

>>From my testing I saw that my headphone only cares about the CC value of
the AVDTP media header. All other values are not used.

The 0xff 0xff in front of the SBC header are not part of the AVDTP media
header. It is already the media channel payload. This follows non of any
specification I know of. And I only know that values, because I sniffed
a connection between the sender device and the headphone with a protocol
analyzer.

Regards

Marcel