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.xhtml) to control the rate value SoundPool’s play(int, float, float, int, int, float) method accepts.

Figure 21.12  BeatBox with playback speed control

Screenshot shows BeatBox app screen in Android. The buttons are arranged in rows and columns. Play Back Speed 35% is shown below. A playback bar also is shown.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.228.40