2.3. Add Sound Effects to Your Game
Learning Objectives
When you have finished section 2.3, you should be able to:
- Use sound initialization routines.
- Work with standard sample playback routines.
- Use low-level sample playback routines.
- Play music in your game programs.
Required Tasks
- Study Chapter 6, Mastering the Audible Realm, in the eTextbook.
- Carefully study each of the routines discussed in Chapter 6 by putting them into a test program, such as the PlayWave program, that loads and plays a Midi file.
- Complete the Chapter 6 quiz, and check your answers in Appendix A.
Files (PlayMidi, PlayWave, SampleMixer)
Optional Task
- Search on the Internet for ways to play music files in other formats, such as .mp3 and .wma, in your games developed with Allegro.