Initializing OpenSL ES
OpenSL will not be very useful if we do not initialize it first. As usual, this step requires some boilerplate code. The verbosity of OpenSL does not improve the situation. Let's start this chapter by creating a new SoundManager
to wrap OpenSL ES-related logic.
Note
The resulting project is provided with this book under the name DroidBlaster_Part10
.