#include <SoundSystem.h>
Public Methods | |
SoundSystem () | |
Installs the sound drivers and loads all sound drivers. | |
~SoundSystem () | |
Shuts down the SoundSystem, and uninitalizes DirectSound. | |
void | playExplosion () |
Plays an explosion sound. | |
void | playHurtSound () |
Plays a sound for when a player gets hurt. | |
void | playDeathSound () |
Plays a sound for when a player dies. | |
void | playPowerupRespawnSound () |
Plays a sound for when a Powerup is about to respawn. | |
void | playPowerupPickupSound () |
Plays a sound for when a Powerup has been picked up. | |
void | playBombarrheaVoice () |
Plays the voice for a bombarrhea Virus. | |
void | playFrailtyVoice () |
Plays the voice for a frailty Virus. | |
void | playShrinkVoice () |
Plays the voice for a shrink Virus. | |
void | playSlowdownVoice () |
Plays the voice for a slowdown Virus. | |
void | playSlowBombsVoice () |
Plays the voice for a slow bombs Virus. | |
void | playBombConstipationVoice () |
Plays the voice for a constipation Virus. | |
SoundToken | startHomingBombSound () |
Starts the homing bomb sound. | |
void | stopHomingBombSound (SoundToken &tok) |
Called when a homing bomb dissapears. | |
Static Public Methods | |
bool | isTokenValid (SoundToken tok) |
Returns true if the SoundToken is a valid token. | |
SoundToken | getInvalidToken () |
Returns a SoundToken that is invalid (has an invalid value). |
It is the interface between the CSoundManager library that Jason Winnebeck located on codeproject.com. This interface is not abstract, and is specific to Super IsoBomb.
|
Installs the sound drivers and loads all sound drivers. Throws an IsoException on error. The sound files are loaded from the "sfx" directory. The global g_win must be properly initialized. |
|
Shuts down the SoundSystem, and uninitalizes DirectSound.
|
|
Returns a SoundToken that is invalid (has an invalid value). This can be considered the token equivalent of a "NULL" pointer. |
|
Returns true if the SoundToken is a valid token.
|
|
Plays the voice for a bombarrhea Virus.
|
|
Plays the voice for a constipation Virus.
|
|
Plays a sound for when a player dies.
|
|
Plays an explosion sound.
|
|
Plays the voice for a frailty Virus.
|
|
Plays a sound for when a player gets hurt.
|
|
Plays a sound for when a Powerup has been picked up.
|
|
Plays a sound for when a Powerup is about to respawn.
|
|
Plays the voice for a shrink Virus.
|
|
Plays the voice for a slow bombs Virus.
|
|
Plays the voice for a slowdown Virus.
|
|
Starts the homing bomb sound. Should be started when the homing bomb appears, and stopped when the homing bomb dissapears. If no sounds are left to be used, an invalid token is returned, and no additional sound is played. For ease of use, you need not check if the returned token is valid, since the stopHomingBombSound method will be able to handle the returned token that is invalid. |
|
Called when a homing bomb dissapears. Changes the passed in token to an invalid token. If the passed token is invalid, this method has no effect.
|