#include <sound_manager.h>
Public Member Functions | |
virtual CWaveFile * | loadSound (const CString &name) |
virtual CWaveFile * | loadSpeech (CDialogueFile *dialogueFile, int speechId) |
virtual CWaveFile * | loadMusic (const CString &name) |
virtual CWaveFile * | loadMusic (CAudioBuffer *buffer, DisposeAfterUse::Flag disposeAfterUse) |
virtual int | playSound (CWaveFile &waveFile, CProximity &prox)=0 |
virtual void | stopSound (int handle)=0 |
virtual void | stopChannel (int channel)=0 |
virtual void | proc9 (int handle) |
virtual void | stopAllChannels ()=0 |
virtual void | setVolume (int handle, uint volume, uint seconds)=0 |
virtual void | setVectorPosition (int handle, double x, double y, double z, uint panRate) |
virtual void | setPolarPosition (int handle, double range, double azimuth, double elevation, uint panRate) |
virtual bool | isActive (int handle)=0 |
virtual bool | isActive (const CWaveFile *waveFile) |
virtual void | waveMixPump ()=0 |
virtual uint | getLatency () const |
virtual void | setMusicPercent (double percent)=0 |
virtual void | setSpeechPercent (double percent)=0 |
virtual void | setMasterPercent (double percent)=0 |
virtual void | setParrotPercent (double percent)=0 |
virtual void | preLoad () |
void | load (SimpleFile *file) |
virtual void | postLoad () |
virtual void | preSave () |
void | save (SimpleFile *file) const |
virtual void | postSave () |
virtual void | setListenerPosition (double posX, double posY, double posZ, double directionX, double directionY, double directionZ, bool stopSounds) |
double | getMusicVolume () const |
double | getSpeechVolume () const |
double | getParrotVolume () const |
uint | getModeVolume (VolumeMode mode) |
Protected Attributes | |
uint | _handleCtr |
double | _musicPercent |
double | _speechPercent |
double | _masterPercent |
double | _parrotPercent |
Abstract interface class for a sound manager
Loads a sound
name | Name of sound resource |
Reimplemented in Titanic::QSoundManager.
|
inlinevirtual |
Loads a speech resource from a dialogue file
name | Name of sound resource |
Reimplemented in Titanic::QSoundManager.
Loads a music file
name | Name of music resource |
Reimplemented in Titanic::QSoundManager.
|
inlinevirtual |
Loads a music file from a streaming audio buffer
buffer | Audio buffer |
Reimplemented in Titanic::QSoundManager.
|
pure virtual |
Start playing a previously loaded wave file
Implemented in Titanic::QSoundManager.
|
pure virtual |
Stop playing the specified sound
Implemented in Titanic::QSoundManager.
|
pure virtual |
Stops a designated range of channels
Implemented in Titanic::QSoundManager.
|
pure virtual |
Stops sounds on all playing channels
Implemented in Titanic::QSoundManager.
|
pure virtual |
Sets the volume for a sound
handle | Handle for sound |
volume | New volume |
seconds | Number of seconds to transition to the new volume |
Implemented in Titanic::QSoundManager.
|
inlinevirtual |
Set the position for a sound
handle | Handle for sound |
x | x position in metres |
y | y position in metres |
z | z position in metres |
panRate | Rate in milliseconds to transition |
Reimplemented in Titanic::QSoundManager.
|
inlinevirtual |
Set the position for a sound
handle | Handle for sound |
range | Range value in metres |
azimuth | Azimuth value in degrees |
elevation | Elevation value in degrees |
panRate | Rate in milliseconds to transition |
Reimplemented in Titanic::QSoundManager.
|
pure virtual |
Returns true if the given sound is currently active
Implemented in Titanic::QSoundManager.
|
inlinevirtual |
Returns true if the given sound is currently active
Reimplemented in Titanic::QSoundManager.
|
pure virtual |
Handles regularly updating the mixer
Implemented in Titanic::QSoundManager.
|
inlinevirtual |
Returns the movie latency
Reimplemented in Titanic::QSoundManager.
|
pure virtual |
Sets the music volume percent
Implemented in Titanic::QSoundManager.
|
pure virtual |
Sets the speech volume percent
Implemented in Titanic::QSoundManager.
|
pure virtual |
Sets the master volume percent
Implemented in Titanic::QSoundManager.
|
pure virtual |
Sets the Parrot NPC volume percent
Implemented in Titanic::QSoundManager.
|
inlinevirtual |
Called when a game is about to be loaded
|
inline |
Load the data for the class from file
|
inlinevirtual |
Called after loading of a game is completed
|
inlinevirtual |
Called when a game is about to be saved
|
inline |
Save the data for the class to file
|
inlinevirtual |
Called after saving is complete
|
inlinevirtual |
Sets the position and orientation for the listener (player)
Reimplemented in Titanic::QSoundManager.
|
inline |
Returns the music volume percent
|
inline |
Returns the speech volume percent
|
inline |
Returns the parrot volume percent
uint Titanic::CSoundManager::getModeVolume | ( | VolumeMode | mode | ) |
Gets the volume for a given mode? value