Re: [Bluez-devel] AVDTP socket?

Henryk Plötz
2004-11-19T18:44:43Z

Moin,

> If that looks like the right direction, I need to work on delineating
> the sbc frames inside the sbc file so i can put on the media packet
> headers and the media payload headers. Is it straightforward?

Well, from what I understand the SBC frames can greatly vary in length
and one can't know the length before unpacking the bitstream (or at
least calculating the 'bits' array). That's why my code works like it
does: the sbc_unpack_frame() returns the length of the frame that it
just unpacked so the calling code can know how many bytes to skip.

There should be a correlation between the bitpool value used and the
length of the frame, but I didn't look into this. Even then one would
have to parse the frame header to know what parameters have actually
been used and calculate the length based on that.

--=20
Henryk Pl=F6tz
Gr=FC=DFe aus Berlin