Managing Music

Images in a game can be manipulated by rotating, transforming, and moving. In comparison, music is static: it can only be played and paused. In Android, you have ways to make music something that can be changed on the go. This is a fairly complicated technique, and it will probably be a while before you’re comfortable enough with it to incorporate it into a game. Here you touch on the surface of the issue with a brief survey of the topic. Afterward, you can continue to explore for yourself and add it to your applications.

The goal of managing music this way is to create an even more immersive experience. When you watch a quality movie, the music changes based on what is happening. For example, as the main character gets ready for ...

Get Beginning Android Tablet Games Programming now with the O’Reilly learning platform.

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