Using audio in games is very important. Most of the systems handling multiple sounds at the same time (background music, different sound effects) is very hard. In Android it is also a difficult task or the API help to solve it?
posted 6 years ago
It's actually very simple, the two main classes you want to use are called MediaPlayer and SoundPool. The later lets you playback multiple sound effects simultaniously. There are also classes to record audio from the microphone and playback PCM samples directly. Be warned however, Android has a big issue with audio latency (the time span from issueing the command to play a sound effect and the actual playback starting).