Skip navigation

Play sound effects with SoundPool

Play sound effects with SoundPool: Building a Game App with the Android SDK
Play sound effects with SoundPool: Building a Game App with the Android SDK

In addition to music, games frequently use sound effects to give a more realistic sense of the world the player is inhabiting. Sound effects are typically provided as very short audio files that are used over and over again as the game is played. This sort of audio file is best managed by an Android component named SoundPool. In my game, each time the player pops a balloon I want to play a popping sound. I’ve already copied my audio files into my resources directory, so now I just need the code to manage the sound.

Resume Transcript Auto-Scroll
Skill Level Intermediate
2h 6m
Duration
87,504
Views
Show More Show Less
Skills covered in this course
Developer Games Mobile Apps Android

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of Lynda.com courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month

You are now leaving Lynda.com and will be automatically redirected to LinkedIn Learning to start your free trial.