Sound is a great way to grab user attention, give interface feedback or immerse a player in a game. Imagine if multiple apps all tried to play sounds at the same time. This would result in an unintelligible cacophony and make users reach for the mute button.
Android provides a simple APIs for apps to play music and audio effects and manage different audio sources. The Android audio focus APIs let an app request 'audio focus' and let the app know if it has lost the audio focus so it can react appropriately. In this tutorial I will show how to use these APIs in your own apps.
Continue reading %Managing Multiple Sound Sources in Android with Audio Focus%
by Abbas Suterwala via SitePoint
No comments:
Post a Comment