Chapter 5. Audio and File I/O
In this chapter, we will cover:
- Playing short sound effects
- Audio streaming for background music
- Optimizing audio files to reduce download sizes
- Procedural audio generators
- Engine sounds with dynamic audio
- The 2D space sound system
- The first approach to file handling in Libgdx
- Using preferences to store game states and options
- The XML parsing primer
- JSON serialization and deserialization
Introduction
Audio plays an essential role in building a game's atmosphere. Every single title that intends to immerse you in its world puts a great deal of attention on sound effects and music, especially in classic horror games. You are in a corridor, it is dark, and you can barely see. The appropriate combination of sounds will make you want ...
Get Libgdx Cross-platform Game Development Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.