Android Programming The Big Nerd Ranch Guide, 3rd Edition

(Brent) #1

Challenge: Playback Speed Control


419

Challenge: Playback Speed Control


In this challenge, you will add playback speed control to BeatBox to greatly expand the user’s
repertoire of possible sounds (Figure 21.12). Within BeatBoxFragment, wire up a SeekBar (check out
the docs at developer.android.com/reference/android/widget/SeekBar.html) to control the rate
value SoundPool’s play(int, float, float, int, int, float) method accepts.


Figure 21.12  BeatBox with playback speed control


http://www.ebook3000.com

Free download pdf