Music and sound effects
From IrrWizard
Introduction
Irrwizard supports both Audiere and FMOD as sound systems. Both are free. Audiere has a more flexible licence agreement where as FMOD is a more powerful and will generally sound better. Examine the licence agreements for both to decide which would be best for your game.
Sound
These are the following classes of interest:
- CGameSoundManager
- CAudiereSoundManager
- CFmodSoundManager
The Game manager will select the correct sound manager on initialisation based on the value in the config.xml.
The SoundDevice attribute can be either “Audiere’ or “Fmod”
<Config>
<Device>
<ScreenResolution height="640" width="380"/>
<Fullscreen value="False"/>
<BitsperPixel value="32"/>
<Stencilbuffer value="False"/>
<Vsync value="True"/>
<DriverType type=" Driver Type "/>
</Device>
<Sound SoundDevice="Audiere"/>
<Config>
Usage
The interface will be the same for both pManager->getSoundManager->PlaySound(“media/sounds/fire.wav”);
This will play the specified .wav file once, for use as sound effects in your game.
pManager->getSoundManager->PlaySong(“media/sounds/intro.mp3”);
This will play the specified .mp3 file in a loop, suitable for background music.
