A2DP Sink: how to get bit depth and sample rate
Posted: Sun May 07, 2017 8:56 pm
I've gotten the A2DP example to work with audio output to I2S - thanks for the example code!
I have used 44100Hz / 16 bit as default, but I saw that 16000 - 48000Hz are possible. Is there a way to be notified what the SBC decoder actually found?
I tried to find out more by looking at the log output from btc_media_task.c and changed the appl_trace_level in bta_sys_main.c on line 62 to BT_TRACE_LEVEL_DEBUG, but that didn't do anything.
Also, since I have gotten the libfaad2 decoder to work I'd like to see if I can select it as an A2DP codec. I guess there is currently no interface for user-provided codecs?
I have used 44100Hz / 16 bit as default, but I saw that 16000 - 48000Hz are possible. Is there a way to be notified what the SBC decoder actually found?
I tried to find out more by looking at the log output from btc_media_task.c and changed the appl_trace_level in bta_sys_main.c on line 62 to BT_TRACE_LEVEL_DEBUG, but that didn't do anything.
Also, since I have gotten the libfaad2 decoder to work I'd like to see if I can select it as an A2DP codec. I guess there is currently no interface for user-provided codecs?