On 1/21/16 4:19 AM, Hong-Rong Lin wrote: > Hi All, > I would like to decode AAC frames from A2DP packets, and feed AAC data into AAC audio decoder to output audio, ie, Bluetooth speaker function supporting AAC streaming. > I have found there are sbc_decode() source code in pulseaudio-2.1, but I cannot find aac_decode(). > Could all of you tell me how to get the aac_decode() source code in the internet? Thanks a lot. It looks like you are trying to build an A2DP sink. If I remember well the AAC payload is transmitted with the LATM syntax so it's a little more elaborate than just decoding the AAC bits, there are quite a few opens on how to extract the packets. Google "A2DP AAC LATM" for more info.