About getting audio streams to A2DP headphone and Headphone

by Rangan » Wed, 16 Sep 2009 00:57:26 GMT


Sponsored Links
 Dear All,


There is a function setRouting to set the audio for a specified mode.
                   public void setRouting (int mode, int routes, int
mask)

The parameters for the routes are:
      int ROUTE_BLUETOOTH This constant is deprecated. use
ROUTE_BLUETOOTH_SCO
      int ROUTE_BLUETOOTH_A2DP Routing audio output to bluetooth
A2DP
      int ROUTE_BLUETOOTH_SCO Routing audio output to bluetooth SCO
      int ROUTE_EARPIECE Routing audio output to earpiece
      int ROUTE_HEADSET Routing audio output to headset
      int ROUTE_SPEAKER Routing audio output to speaker
Using the OR of these parameters, theoritically we should be able to
get the routing to 2 routes. For eg. if we need blue tooth A2DP
headphone and Speaker, we should be able to achieve it using
( ROUTE_BLUETOOTH_A2DP | ROUTE_SPEAKER).

Bu it does not work as expected on say HTC phones. It will just stay
with A2DP headphone which means, it is most likely a MIPS issue as
well and the Android system default is built this way. Am I right?

Any idea on what other ways we can achieve streaming to A2DP headphone
and also to have the same stream or different stream locally played
back on speakers.



Regards
Rangan.
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Enable and Disable APN

Hello boys, in my application i need to Enable and Disable APN, but I
don't have idea to' do this.

someone help me???

-- 

2. further doubt in layout and activity

Again I am confused a little. If I can show a different layout calling
setContentLayout, please anybody can give me an example of a
compelling situation where my app would need more than one activity ?

regards

-- 

3. Droid or android 2.0 performance issues?

4. deleting then recreating a MapView in the same MapActivity fails

5. Widget multiple sizes

6. R wont generate

7. Upgrade problems with HTC hero type phones