Skip navigation

Play sounds with SoundPool

Play sounds with SoundPool: Android Development Tips Weekly
Play sounds with SoundPool: Android Development Tips Weekly

To play longer audio files, you can use the MediaPlayer component. But with shorter sounds where the file is less than 1 megabyte in size, you can play the file with SoundPool. This class can load a file directly from assets, so you don’t have to take the step of copying it to a new location. And you can cache the file in memory as an activity starts up so you won’t have any latency the first time you play it. This make SoundPool ideal for game sounds and other effects that have to be played multiple times.

Resume Transcript Auto-Scroll
Skill Level Intermediate
5h 20m
Duration
31,469
Views
Show More Show Less

Q: Why can't I earn a Certificate of Completion for this course?

A: We publish a new tutorial or tutorials for this course on a regular basis. We are unable to offer a Certificate of Completion because it is an ever-evolving course that is not designed to be completed. Check back often for new movies.

Skills covered in this course
Developer 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