Quantcast
Channel: Adobe Community : Unanswered Discussions - AIR Development
Viewing all articles
Browse latest Browse all 2010

iOS/android - how to mute music player sound when playing app sound?

$
0
0

Hi,

 

I am trying to achieve the following, in an app for iOS and Android devices:

 

My app contains information that, under certain circumstances, are being read to the user. If the user is playing music using f.i. iPod, i would want the external sound to fade down, read the info, then fade back up. I have seen (heard) this on apps such as RunKeeper, where voice feedback is 'superimposed' over existing media sound, which is faded down for the duration of the voice feedback.

 

i am using Adobe Air 3.9 sdk, using Sound, SoundChannel and SoundMixer with AudioPlaybackMode set to MEDIA, VOICE and AMBIENT.

 

When setting AudioPlaybackMode to VOICE, the background audio stops, yet there is no way of restarting it without activating ipod and hitting play....

 

Any pointers, be they to extensions or other resources, are greatly appreciated!

 

- Fred


Viewing all articles
Browse latest Browse all 2010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>