LWN.net Logo

I think you'll find it's a bit more complicated than that

I think you'll find it's a bit more complicated than that

Posted May 13, 2012 0:03 UTC (Sun) by drag (subscriber, #31333)
In reply to: I think you'll find it's a bit more complicated than that by tialaramex
Parent article: PulseAudio 2.0 released

Yes Android is aware of your audio I/O and will try to react accordingly. When you turn off your bluetooth headset or unplug your wired headset it will try to stop the music. Depends on the app...

Another nice thing it does, of course, is when you receive a phone call it mutes all audio output and pauses music if possible. Then it will resume once you hang up.

It's not perfect. Not all applications honor the stop/start commands you can issue through bluetooth devices, or plugged-in headsets. Sometimes android will start up music after I hang up a phone call even though I didn't have music playing before the phone call. Sometimes when you issue start/stop events the default music player will grab those rather then the app that is actually making audio at the time. Just odd things like that every once and a while.

But for the most part it works.


(Log in to post comments)

I think you'll find it's a bit more complicated than that

Posted May 13, 2012 6:24 UTC (Sun) by alankila (subscriber, #47141) [Link]

Yeah, this is entirely up to the application afaik. You can write a program that still continues playing music in the background while the user receives a phonecall. (I know this because this is currently a bug in one music player I have written, haven't bothered to fix it though.) There's nothing that *android* specifically does about it, I'm afraid.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds