Chapter 4. Sound Effects and Music

KEY TOPICS

  • Sound Basics

  • The Java Sound API

  • Playing a Sound

  • Creating a Real-Time Sound Filter Architecture

  • Creating a Real-Time Echo Filter

  • Emulating 3D Sound

  • Creating a Sound Manager

  • Playing Music

  • Summary

Unless you've never managed to figure out how to hook up speakers to your computer, you've noticed that games have sound effects—cool sound effects—and sometimes music, too.

When you're playing a game (with the speakers on, of course), you might hear the sound effects but not really notice them. That's because you expect to hear them—sometimes sound effects are something you notice only when they're missing. They're sort of like electricity. To sum it up, sound effects are an important part of a game. People expect to ...

Get Developing Games in Java™ 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.