Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Streaming SBC file over Bluetooth via A2DP (Read 4504 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Streaming SBC file over Bluetooth via A2DP

I am trying my hands on streaming SBC encoded data over Bluetooth via A2DP.
The environment is a test setup with a carkit which will play the incoming stream data form my phone simulation PC software.

I understand the way SBC files are stored as sequence of MPEG-style encoded frames, and can reach each frame header (which begins with 9C syncword).

My question is:
In my scenario, which part of frame (other than actual audio sample data) actually needs to be buffered and packed into RTP payload for transmission, so that the car device can decode the stream and play the audio.

Is it that the receiving device needs the complete frame data(including the 4-byte header itself, CRC bits, Scale factors and and remaining audio sample data). Or do the frame needs to be parsed, and read only some relevant part of it and send as RTP payload data. In 2nd case, how to calculate the position and size of this part of frame.

Any help in this would be highly appreciated. Thanks in advance !