I have been looking around in the demo code and in the stack documentation for a while. I am looking for a decent way to do the following:
I have an audio sink configured in my application. When any of the devices in the link list try to connect to my application, it should disconnect from its current connection, and immediately accept the new incoming connection. How can I do this in a nice way?
Now I can call the following (just tried it in the terminal window yet)
- remotepause
- closesink
- opensink
- Now we can connect with the new device.
It seems however not to be a nice way, and I cannot find anywhere how to do this properly.
To be shorT: I want the most recent connection to take precedence over older connections, with as less servers as possible.
My application is comparable to the A3DP demosink.