Skip To Content

Athabasca University

2.3. Add Sound Effects to Your Game

Learning Objectives

When you have finished section 2.3, you should be able to:

  1. Use sound initialization routines.
  2. Work with standard sample playback routines.
  3. Use low-level sample playback routines.
  4. Play music in your game programs.

Required Tasks

  1. Study Chapter 6, Mastering the Audible Realm, in the eTextbook.
  2. 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.
  3. Complete the Chapter 6 quiz, and check your answers in Appendix A.

Files (PlayMidi, PlayWave, SampleMixer)

Optional Task

  1. Search on the Internet for ways to play music files in other formats, such as .mp3 and .wma, in your games developed with Allegro.

Updated May 24 2016 by FST Course Production