AudioPolicyManager

by ani » Wed, 24 Feb 2010 18:16:36 GMT


Sponsored Links
 In the current implementation given in AudioPolicyManager the BT
headset has got the highest priority and DEVICE_OUT_WIRED_HEADSET  has
got the second priority.

Priority means:When both are connected then the audio will come from
BT headset and if you remove BT headset audio will come from
DEVICE_OUT_WIRED_HEADSET.

I wanted to change the priority(wanted to give high priority to
DEVICE_OUT_WIRED_HEADSET instead of BT headset) but just changing
getDeviceForStrategy() function will not change the priority as we
need to take care of situation below:

a. when both are connected
b. remove the DEVICE_OUT_WIRED_HEADSET,this should transfer the audio
streams from  WIRED_HEADSET to BT headset.

Please suggest the changes required to get this done apart from the
change in getDeviceForStrategy function.

--



AudioPolicyManager

by ani » Thu, 25 Feb 2010 18:02:03 GMT


 According to Google Policy wired devices have higher priority compare
to BT devices which is not followed in AudioPolicyManager.I saw a
recent checkin by Jean-Michel in opensource but it doesn't solve the
problem.

I am talking about BT headset streaming and you connect normal wired
headset when music is streaming.That time all the stream media should
be transferred to normal wired headset.This is not done by this check-
in or am i missing something??

I would highly appreciate if you respond.

Thanks.

--


Sponsored Links


AudioPolicyManager

by ani » Fri, 26 Feb 2010 21:32:39 GMT


 You didn't miss anything: currently the plugging-in of a wired
accessory will not interrupt/reroute BT A2DP streaming, A2DP has
priority over wired connections. We intend to change that behavior in
a future release. Do you have a specific use-case you can share? We
can add it to our usage-scenarios to make sure this is the right
behavior to adopt.
Thanks,
   Jean-Michel.

--



Other Threads

1. problems building an eclipse dev environment as described on http://source.android.com/using-eclips

Hi Dav

I use Eclipse with Android plugin. What I did was to download eclipse, open
it up, add the android plugin. What is the problem that you are facing? Are
you unable to use Eclipse or Android plugin hasn't properly installed ?






-- 
Regards
Shuchi

--~--~---------~--~----~------------~-------~--~----~

2. problem with Hello, Gallery R.styleable not resolve

There is a mistake here in resources.xml file but I corrected it. The
correct one is as follow:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <declare-styleable name="Gallery1">
        <attr name="android:galleryItemBackground" />
    </declare-styleable>
</resources>

Thanks Justin. Your post is really helpful.






--~--~---------~--~----~------------~-------~--~----~

3. Who is responsible for validation of layout xml file?

4. eclipse plug-in installation problem

5. problems building an eclipse dev environment as described on http://source.android.com/using-eclips

6. Want to graduate from android-beginners to android-developers

7. how to make a SESSION dbus connection on android?