Chapter 12
Digital Audio: Providing Aural Feedback for UI Designs Using SoundPool
In the previous chapter on digital video, we covered the Uri, MediaPlayer, and MediaController classes, which you can also use with digital audio, which we are going to cover in this chapter. Since these classes are used in the same exact way with digital audio assets, I am going to show you how to use the Android SoundPool audio sequencing class in this chapter, so I can cover as many of Android’s new media classes as possible in this book.
If you want to play long-form digital audio, such as songs, albums, or audio books, you would use the Android MediaPlayer class along with the Android MediaController and URI classes, using the SeekBar widget, instead of ...
Get Android Apps for Absolute Beginners now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.