Chapter 10. Managing Music and Sound Effects

In this chapter you will learn how to manage your music and sound effects. Libgdx provides four interfaces to handle different types of audio data. The first two interfaces that we will discuss are targeted at playing back prerecorded audio files. The two remaining interfaces give us even more low-level access to the audio device. They can be used to record and play back raw samples of audio data, which is a so-called PCM (Pulse-Code Modulation)-encoded audio signal. After that, we will take a look at the great world of sound generators. These tools are extremely handy as they allow you to quickly create new sound effects in a short period of time.

Lastly, looping background music and some sound effects ...

Get Learning Libgdx Game Development now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.