Colobot
|
Public Member Functions | |
bool | Create () override |
void | Reset () override |
bool | Cache (SoundType, const std::string &) override |
void | CacheMusic (const std::string &) override |
bool | IsCached (SoundType) 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 (SoundType sound, float amplitude=1.0f, float frequency=1.0f, bool loop=false) override |
int | Play (SoundType sound, const Math::Vector &pos, float amplitude=1.0f, float frequency=1.0f, bool loop=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 mute) override |
void | PlayMusic (const std::string &filename, bool repeat, float fadeTime=2.0f) override |
void | StopMusic (float fadeTime=2.0f) override |
bool | IsPlayingMusic () override |
void | PlayPauseMusic (const std::string &filename, bool repeat) override |
void | StopPauseMusic () override |
![]() | |
virtual bool | Create () |
void | CacheAll () |
virtual void | Reset () |
virtual bool | Cache (SoundType sound, const std::string &file) |
virtual void | CacheMusic (const std::string &file) |
virtual bool | IsCached (SoundType sound) |
virtual bool | IsCachedMusic (const std::string &file) |
virtual bool | GetEnable () |
virtual void | SetAudioVolume (int volume) |
virtual int | GetAudioVolume () |
virtual void | SetMusicVolume (int volume) |
virtual int | GetMusicVolume () |
virtual void | SetListener (const Math::Vector &eye, const Math::Vector &lookat) |
virtual void | FrameMove (float rTime) |
virtual int | Play (SoundType sound, float amplitude=1.0f, float frequency=1.0f, bool loop=false) |
virtual int | Play (SoundType sound, const Math::Vector &pos, float amplitude=1.0f, float frequency=1.0f, bool loop=false) |
virtual bool | FlushEnvelope (int channel) |
virtual bool | AddEnvelope (int channel, float amplitude, float frequency, float time, SoundNext oper) |
virtual bool | Position (int channel, const Math::Vector &pos) |
virtual bool | Frequency (int channel, float frequency) |
virtual bool | Stop (int channel) |
virtual bool | StopAll () |
virtual bool | MuteAll (bool mute) |
virtual void | PlayMusic (const std::string &filename, bool repeat, float fadeTime=2.0f) |
virtual void | StopMusic (float fadeTime=2.0f) |
virtual bool | IsPlayingMusic () |
virtual void | PlayPauseMusic (const std::string &filename, bool repeat) |
virtual void | StopPauseMusic () |
|
overridevirtual |
Function to initialize sound device
Reimplemented from CSoundInterface.
|
overridevirtual |
Stop all sounds and music and clean cache.
Reimplemented from CSoundInterface.
|
overridevirtual |
Function called to cache sound effect file. This function is called by plugin interface for each file.
sound | - id of a file, will be used to identify sound files |
file | - file to load |
Reimplemented from CSoundInterface.
|
overridevirtual |
Function called to cache music file. This function is called by CRobotMain for each file used in the mission. This function is executed asynchronously
file | - file to load |
Reimplemented from CSoundInterface.
|
overridevirtual |
Function to check if sound effect file was cached.
sound | - id of a sound effect file |
Reimplemented from CSoundInterface.
|
overridevirtual |
Function called to check if music file was cached.
file | - file to check |
Reimplemented from CSoundInterface.
|
overridevirtual |
Return if plugin is enabled
Reimplemented from CSoundInterface.
|
overridevirtual |
Change global sound volume
volume | - range from 0 to MAXVOLUME |
Reimplemented from CSoundInterface.
|
overridevirtual |
Return global sound volume
Reimplemented from CSoundInterface.
|
overridevirtual |
|
overridevirtual |
Return music volume
Reimplemented from CSoundInterface.
|
overridevirtual |
Set listener position
eye | - position of listener |
lookat | - direction listener is looking at |
Reimplemented from CSoundInterface.
|
overridevirtual |
|
overridevirtual |
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) |
loop | - loop sound |
Reimplemented from CSoundInterface.
|
overridevirtual |
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) |
loop | - loop sound |
Reimplemented from CSoundInterface.
|
overridevirtual |
Remove all operations that would be made on sound in channel.
channel | - channel to work on |
Reimplemented from CSoundInterface.
|
overridevirtual |
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.
|
overridevirtual |
Set sound position in space
channel | - channel to work on |
pos | - new positino of a sound |
Reimplemented from CSoundInterface.
|
overridevirtual |
Set sound frequency
channel | - channel to work on |
frequency | - change sound frequency |
Reimplemented from CSoundInterface.
|
overridevirtual |
Stop playing sound
channel | - channel to work on |
Reimplemented from CSoundInterface.
|
overridevirtual |
|
overridevirtual |
Mute/unmute all sounds
mute |
Reimplemented from CSoundInterface.
|
overridevirtual |
Start playing music This function is executed asynchronously
filename | - name of file to play |
repeat | - repeat playing |
fadeTime | - time of transition between music, 0 to disable |
Reimplemented from CSoundInterface.
|
overridevirtual |
|
overridevirtual |
Check if music if playing
Reimplemented from CSoundInterface.
|
overridevirtual |
Start playing pause music This function is executed asynchronously
filename | - name of file to play |
repeat | - repeat playing |
Reimplemented from CSoundInterface.
|
overridevirtual |
Stop playing pause music and return to the mission music
Reimplemented from CSoundInterface.