Minetest  5.4.0
DummySoundManager Class Reference

#include <sound.h>

+ Inheritance diagram for DummySoundManager:
+ Collaboration diagram for DummySoundManager:

Public Member Functions

virtual bool loadSoundFile (const std::string &name, const std::string &filepath)
 
virtual bool loadSoundData (const std::string &name, const std::string &filedata)
 
void updateListener (const v3f &pos, const v3f &vel, const v3f &at, const v3f &up)
 
void setListenerGain (float gain)
 
int playSound (const std::string &name, bool loop, float volume, float fade, float pitch)
 
int playSoundAt (const std::string &name, bool loop, float volume, v3f pos, float pitch)
 
void stopSound (int sound)
 
bool soundExists (int sound)
 
void updateSoundPosition (int sound, v3f pos)
 
bool updateSoundGain (int id, float gain)
 
float getSoundGain (int id)
 
void step (float dtime)
 
void fadeSound (int sound, float step, float gain)
 
- Public Member Functions inherited from ISoundManager
virtual ~ISoundManager ()=default
 
int playSound (const SimpleSoundSpec &spec, bool loop)
 
int playSoundAt (const SimpleSoundSpec &spec, bool loop, const v3f &pos)
 

Member Function Documentation

◆ fadeSound()

void DummySoundManager::fadeSound ( int  sound,
float  step,
float  gain 
)
inlinevirtual

Implements ISoundManager.

◆ getSoundGain()

float DummySoundManager::getSoundGain ( int  id)
inlinevirtual

Implements ISoundManager.

◆ loadSoundData()

virtual bool DummySoundManager::loadSoundData ( const std::string &  name,
const std::string &  filedata 
)
inlinevirtual

Implements ISoundManager.

◆ loadSoundFile()

virtual bool DummySoundManager::loadSoundFile ( const std::string &  name,
const std::string &  filepath 
)
inlinevirtual

Implements ISoundManager.

◆ playSound()

int DummySoundManager::playSound ( const std::string &  name,
bool  loop,
float  volume,
float  fade,
float  pitch 
)
inlinevirtual

Implements ISoundManager.

◆ playSoundAt()

int DummySoundManager::playSoundAt ( const std::string &  name,
bool  loop,
float  volume,
v3f  pos,
float  pitch 
)
inlinevirtual

Implements ISoundManager.

◆ setListenerGain()

void DummySoundManager::setListenerGain ( float  gain)
inlinevirtual

Implements ISoundManager.

◆ soundExists()

bool DummySoundManager::soundExists ( int  sound)
inlinevirtual

Implements ISoundManager.

◆ step()

void DummySoundManager::step ( float  dtime)
inlinevirtual

Implements ISoundManager.

◆ stopSound()

void DummySoundManager::stopSound ( int  sound)
inlinevirtual

Implements ISoundManager.

◆ updateListener()

void DummySoundManager::updateListener ( const v3f pos,
const v3f vel,
const v3f at,
const v3f up 
)
inlinevirtual

Implements ISoundManager.

◆ updateSoundGain()

bool DummySoundManager::updateSoundGain ( int  id,
float  gain 
)
inlinevirtual

Implements ISoundManager.

◆ updateSoundPosition()

void DummySoundManager::updateSoundPosition ( int  sound,
v3f  pos 
)
inlinevirtual

Implements ISoundManager.


The documentation for this class was generated from the following file: