December 2015
Beginner
698 pages
15h 16m
English
In this chapter, you will learn how to load and play sound effects (FX) on Android. As the sound part of the Android API has recently been updated, this is also a good opportunity to look at a strategy for supporting different versions of Android. Throughout the book, we have been writing apps that run on 95% of devices by default, but there are times when we want to support more devices. Also, it is useful to be able to future-proof our apps a bit when we know that the code we write will eventually not work on new devices. This chapter includes the following topics:
SoundPool class workRead now
Unlock full access