Colobot
|
Public Member Functions | |
bool | Create () OVERRIDE |
bool | Cache (Sound, const std::string &) OVERRIDE |
bool | CacheMusic (const std::string &) OVERRIDE |
bool | IsCached (Sound) OVERRIDE |
bool | IsCachedMusic (const std::string &) OVERRIDE |
bool | GetEnable () OVERRIDE |
void | SetAudioVolume (int volume) OVERRIDE |
int | GetAudioVolume () OVERRIDE |
void | SetMusicVolume (int volume) OVERRIDE |
int | GetMusicVolume () OVERRIDE |
void | SetListener (const Math::Vector &eye, const Math::Vector &lookat) OVERRIDE |
void | FrameMove (float rTime) OVERRIDE |
int | Play (Sound sound, float amplitude=1.0f, float frequency=1.0f, bool bLoop=false) OVERRIDE |
int | Play (Sound sound, const Math::Vector &pos, float amplitude=1.0f, float frequency=1.0f, bool bLoop=false) OVERRIDE |
bool | FlushEnvelope (int channel) OVERRIDE |
bool | AddEnvelope (int channel, float amplitude, float frequency, float time, SoundNext oper) OVERRIDE |
bool | Position (int channel, const Math::Vector &pos) OVERRIDE |
bool | Frequency (int channel, float frequency) OVERRIDE |
bool | Stop (int channel) OVERRIDE |
bool | StopAll () OVERRIDE |
bool | MuteAll (bool bMute) OVERRIDE |
bool | PlayMusic (int rank, bool bRepeat, float fadeTime=2.0f) OVERRIDE |
bool | PlayMusic (const std::string &filename, bool bRepeat, float fadeTime=2.0f) OVERRIDE |
bool | RestartMusic () OVERRIDE |
void | SuspendMusic () OVERRIDE |
void | StopMusic (float fadeTime=2.0f) OVERRIDE |
bool | IsPlayingMusic () OVERRIDE |
bool | PlayPauseMusic (const std::string &filename, bool repeat) OVERRIDE |
void | StopPauseMusic () OVERRIDE |
![]() | |
void | CacheAll () |
void | AddMusicFiles () |
|
virtual |
Add envelope to sound. Envelope is a operatino that will be performend on sound in future like changing frequency
channel | - channel to work on |
amplitude | - change amplitude |
frequency | - change frequency |
time | - when to change (sample time) |
oper | - operation to perform |
Reimplemented from CSoundInterface.
|
virtual |
Function called to cache sound effect file. This function is called by plugin interface for each file.
bSound | - id of a file, will be used to identify sound files |
bFile | - file to load |
Reimplemented from CSoundInterface.
|
virtual |
Function called to cache music file. This function is called by CRobotMain for each file used in the mission.
bFile | - file to load |
Reimplemented from CSoundInterface.
|
virtual |
Function to initialize sound device
Reimplemented from CSoundInterface.
|
virtual |
Remove all operations that would be made on sound in channel.
channel | - channel to work on |
Reimplemented from CSoundInterface.
|
virtual |
|
virtual |
Set sound frequency
channel | - channel to work on |
frequency | - change sound frequency |
Reimplemented from CSoundInterface.
|
virtual |
Return global sound volume
Reimplemented from CSoundInterface.
|
virtual |
Return if plugin is enabled
Reimplemented from CSoundInterface.
|
virtual |
Return music volume
Reimplemented from CSoundInterface.
|
virtual |
Function to check if sound effect file was cached.
bSound | - id of a sound effect file |
Reimplemented from CSoundInterface.
|
virtual |
Function called to check if music file was cached.
bFile | - file to check |
Reimplemented from CSoundInterface.
|
virtual |
Check if music if playing
Reimplemented from CSoundInterface.
|
virtual |
Mute/unmute all sounds
bMute |
Reimplemented from CSoundInterface.
|
virtual |
Play specific sound
sound | - sound to play |
amplitude | - change amplitude of sound before playing |
frequency | - change sound frequency before playing (0.5 octave down, 2.0 octave up) |
bLoop | - loop sound |
Reimplemented from CSoundInterface.
|
virtual |
Play specific sound
sound | - sound to play |
pos | - position of sound in space |
amplitude | - change amplitude of sound before playing |
frequency | - change sound frequency before playing (0.5 octave down, 2.0 octave up) |
bLoop | - loop sound |
Reimplemented from CSoundInterface.
|
virtual |
Start playing music
rank | - track number |
bRepeat | - repeat playing |
fadeTime | - time of transition between music |
Reimplemented from CSoundInterface.
|
virtual |
Start playing music
filename | - name of file to play |
bRepeat | - repeat playing |
fadeTime | - time of transition between music |
Reimplemented from CSoundInterface.
|
virtual |
Start playing pause music
filename | - name of file to play |
Reimplemented from CSoundInterface.
|
virtual |
Set sound position in space
channel | - channel to work on |
pos | - new positino of a sound |
Reimplemented from CSoundInterface.
|
virtual |
|
virtual |
Change global sound volume
volume | - range from 0 to MAXVOLUME |
Reimplemented from CSoundInterface.
|
virtual |
Set listener position
eye | - position of listener |
lookat | - direction listener is looking at |
Reimplemented from CSoundInterface.
|
virtual |
|
virtual |
Stop playing sound
channel | - channel to work on |
Reimplemented from CSoundInterface.
|
virtual |
|
virtual |
|
virtual |
Stop playing pause music and return to the mission music
Reimplemented from CSoundInterface.
|
virtual |