Thread (2 messages) read the whole thread 2 messages, 2 authors, 2017-05-23

Question on switiching codecs with bluez 5

From: Sudha S <hidden>
Date: 2017-05-22 07:35:34

Hello ,

  I have a device that is registered as a A2DP source.
In my code , I am registering with 2 codecs as endpoints SBC and AAC .
I am using the bluez 5 calls for this .

I am connecting this to a SONY speaker that supports AAC and SBC.

The SetConfiguration and SelectConfiguration callbacks received are
for the "AAC endpoint" .
AAC content gets played .
My device (source) supports other audio formats other than AAC .

Question 1 :
------------------
Can the non AAC content be played now  by the speaker ? Or is it
expected that the input tot he speaker should now always be AAC.

Question 2:
----------------
If yes, then how can this be done with bluez?

Question 3:
------------------
In my code with 2 RegisterEndpoint calls, if the code registers for
SBC first followed by AAC, then the Select/Set callbacks are received
for SBC .
If the order of calls is switched i.e Register endpoint with AAC as
codec first followed by SBC, then the callbacks are reeceived for AAC
.

Is this the expected behavior or is this device (sink) specific ?

Thanks ,
Sudha.S
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help