Re: [Bluez-devel] AVDTP socket?

Brad Midgley
2004-11-19T09:03:29Z

Marcel

I cleaned up the bitfields for the avdtp packets and committed it...

Do you think this looks right for covering the header on avdtp page 45?

// remember htobs() for converting from host to bluetooth byte ordering
// when putting data in this struct
typedef struct {
uint8_t v:2;
uint8_t p:1;
uint8_t x:1;
uint8_t cc:4;
uint8_t m:1;
uint8_t pt:7;
uint16_t sequence_number;
uint32_t timestamp;
uint32_t ssrc;
uint32_t csrc[0];
} __attribute__ ((packed)) media_packet_header;

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?

Brad

Marcel Holtmann wrote:
> Hi Henryk,
>
>
>>I'm currently working (more or less; more less than more) on SBC and
>>trying to do a decoder first because I figure that would be easier
>>(because I know what the result is supposed to look like). I have
>>problems synthesizing the PCM audio samples but can parse all of the
>>example SBC streams just fine.
>>
>>I'll attach what I have now. The sbc-test.c currently dumps subband
>>samples on stdout for testing, so just redirect that to /dev/null. The decoded
>>frame headers are written to stderr.
>
>
> I just tested it and the result so far is very great. Keep on working on
> it. What format do you think is the easiest to encode/decode?
>
> And btw your file creation should be this command:
>
> fh = open("bla_.au", O_WRONLY|O_CREAT|O_TRUNC, 0644);
>
> Regards
>
> Marcel
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: InterSystems CACHE
> FREE OODBMS DOWNLOAD - A multidimensional database that combines
> robust object and relational technologies, making it a perfect match
> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel