#include <sound.h>
|
virtual | ~ISoundManager ()=default |
|
virtual bool | loadSoundFile (const std::string &name, const std::string &filepath)=0 |
|
virtual bool | loadSoundData (const std::string &name, const std::string &filedata)=0 |
|
virtual void | updateListener (const v3f &pos, const v3f &vel, const v3f &at, const v3f &up)=0 |
|
virtual void | setListenerGain (float gain)=0 |
|
virtual int | playSound (const std::string &name, bool loop, float volume, float fade=0.0f, float pitch=1.0f)=0 |
|
virtual int | playSoundAt (const std::string &name, bool loop, float volume, v3f pos, float pitch=1.0f)=0 |
|
virtual void | stopSound (int sound)=0 |
|
virtual bool | soundExists (int sound)=0 |
|
virtual void | updateSoundPosition (int sound, v3f pos)=0 |
|
virtual bool | updateSoundGain (int id, float gain)=0 |
|
virtual float | getSoundGain (int id)=0 |
|
virtual void | step (float dtime)=0 |
|
virtual void | fadeSound (int sound, float step, float gain)=0 |
|
int | playSound (const SimpleSoundSpec &spec, bool loop) |
|
int | playSoundAt (const SimpleSoundSpec &spec, bool loop, const v3f &pos) |
|
◆ ~ISoundManager()
virtual ISoundManager::~ISoundManager |
( |
| ) |
|
|
virtualdefault |
◆ fadeSound()
virtual void ISoundManager::fadeSound |
( |
int |
sound, |
|
|
float |
step, |
|
|
float |
gain |
|
) |
| |
|
pure virtual |
◆ getSoundGain()
virtual float ISoundManager::getSoundGain |
( |
int |
id | ) |
|
|
pure virtual |
◆ loadSoundData()
virtual bool ISoundManager::loadSoundData |
( |
const std::string & |
name, |
|
|
const std::string & |
filedata |
|
) |
| |
|
pure virtual |
◆ loadSoundFile()
virtual bool ISoundManager::loadSoundFile |
( |
const std::string & |
name, |
|
|
const std::string & |
filepath |
|
) |
| |
|
pure virtual |
◆ playSound() [1/2]
◆ playSound() [2/2]
virtual int ISoundManager::playSound |
( |
const std::string & |
name, |
|
|
bool |
loop, |
|
|
float |
volume, |
|
|
float |
fade = 0.0f , |
|
|
float |
pitch = 1.0f |
|
) |
| |
|
pure virtual |
Implemented in OpenALSoundManager, and DummySoundManager.
Referenced by SoundMaker::cameraPunchLeft(), SoundMaker::cameraPunchRight(), Client::handleCommand_PlaySound(), ModApiClient::l_sound_play(), SoundMaker::nodeDug(), GUIFormSpecMenu::OnEvent(), SoundMaker::playerDamage(), SoundMaker::playerFallingDamage(), SoundMaker::playPlayerJump(), SoundMaker::playPlayerStep(), playSound(), and GUIEngine::playSound().
◆ playSoundAt() [1/2]
int ISoundManager::playSoundAt |
( |
const SimpleSoundSpec & |
spec, |
|
|
bool |
loop, |
|
|
const v3f & |
pos |
|
) |
| |
|
inline |
◆ playSoundAt() [2/2]
virtual int ISoundManager::playSoundAt |
( |
const std::string & |
name, |
|
|
bool |
loop, |
|
|
float |
volume, |
|
|
v3f |
pos, |
|
|
float |
pitch = 1.0f |
|
) |
| |
|
pure virtual |
◆ setListenerGain()
virtual void ISoundManager::setListenerGain |
( |
float |
gain | ) |
|
|
pure virtual |
◆ soundExists()
virtual bool ISoundManager::soundExists |
( |
int |
sound | ) |
|
|
pure virtual |
◆ step()
virtual void ISoundManager::step |
( |
float |
dtime | ) |
|
|
pure virtual |
◆ stopSound()
virtual void ISoundManager::stopSound |
( |
int |
sound | ) |
|
|
pure virtual |
◆ updateListener()
virtual void ISoundManager::updateListener |
( |
const v3f & |
pos, |
|
|
const v3f & |
vel, |
|
|
const v3f & |
at, |
|
|
const v3f & |
up |
|
) |
| |
|
pure virtual |
◆ updateSoundGain()
virtual bool ISoundManager::updateSoundGain |
( |
int |
id, |
|
|
float |
gain |
|
) |
| |
|
pure virtual |
◆ updateSoundPosition()
virtual void ISoundManager::updateSoundPosition |
( |
int |
sound, |
|
|
v3f |
pos |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: