472 CHAPTER 12: Digital Audio: Providing Aural Feedback for UI Designs Using SoundPool
Figure 12-25. Add a triggerSample( ) method call to samples 1, 2, and 3 with 1.0f pitch value in the ImageButton handler
Now you’re ready to use a Run As ➤ Android Application menu sequence to test your digital
audio sequencer ( your SoundPool engine implementation) and have some fun! As you click the
ImageButton UI elements, you will hear some unique sound effects. Too bad I cannot include sound
in a screenshot, or I’d put one in right here. Great Job!
Summary
In this chapter, you learned about how to use Audacity 2.0.5. You learned about the Android
SoundPool digital audio sequencing engine class and how it allows you to add multiple audio
samples to your Android application so that you can add digital audio sequencing capabilities to
your applications.
You learned about all of the various ins and outs of the SoundPool digital audio sequencing and
synthesis engine, as well as about all of its caveats and considerations regarding how it works.
If you read the appendix in the book, as suggested during this chapter, you also learned all about
the history of audio history, as well as about digital audio concepts, terminology, codecs and
optimization techniques.