Skip to main content
Participant
December 6, 2013
質問

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

  • December 6, 2013
  • 返信数 0.
  • 503 ビュー

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

このトピックへの返信は締め切られました。