Android Programming The Big Nerd Ranch Guide by Bill Phillips, Chris Stewart, Kristin Marsicano (z-lib.org)

(gtxtreme123) #1

Challenge: Playback Speed Control


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

Free download pdf