Understanding and Implementing Audio on Android
summary
Concrete implementation notes and outcomes: compares MediaPlayer, SoundPool and ExoPlayer, inspects Android’s AudioService, and ships audio for a smart oven. Uses SoundPool for low-latency taps and MediaPlayer for larger files, implements audio focus and themes, and loads common sounds eagerly. Shows state-machine pitfalls, a slider UI that requires mixing simultaneous notes, a wake-sound race that produces static, and APK bloat from packed assets, so workarounds are practical but imperfect.
AI-written summary · about
chapters (13)
- 0:00Start
- 1:41Motivation Creating a more interactive experience
- 3:51How is Audio Processed?
- 7:36Implementing Audio Playback
- 8:03Media Player
- 12:23MediaPlayer : Common Errors
- 13:55SoundPool
- 19:02Being a good (App) Citizen
- 19:58AudioFocus : Scenario
- 20:30AudioFocus : Proper Flow
- 21:02AudioFocus: Intentions
- 21:52Sounds on the June Oven
- 23:27Problems Encountered
related talks
16mUnderstanding and Implementing Audio on Android
42mLet's make some noise with Android
35mControlling Android Sound
38mAndroid Audio: Beyond Winning On It
23mAdvanced ExoPlayer
44mBuild Your Own Relaxation Audio App
13mAndroid on the Road: Playing Music with UAMP in Cars
39mDemystifying Low Latency Audio on Android
