All the functions are empty except:
Code: Select all
void CGameSoundState::BackMusic()
{
stream = OpenSound(audiereDevice, "media/win.mp3", true);
if (!stream)
return;
stream->setRepeat(true); //Loop
stream->setVolume(0.5f); // 50% volume
stream->play();
}
Code: Select all
void CGameSoundState::Init(CGameSoundState * pManager)
{
audiereDevice = OpenDevice();
if (!audiereDevice)
return;
}