Otclient  14/8/2020
SoundManager Class Reference

#include <soundmanager.h>

Public Member Functions

void init ()
 
void terminate ()
 
void poll ()
 
void setAudioEnabled (bool enable)
 
bool isAudioEnabled ()
 
void enableAudio ()
 
void disableAudio ()
 
void stopAll ()
 
void preload (std::string filename)
 
SoundSourcePtr play (std::string filename, float fadetime=0, float gain=0)
 
SoundChannelPtr getChannel (int channel)
 
std::string resolveSoundFile (std::string file)
 
void ensureContext ()
 

Detailed Description

Definition at line 30 of file soundmanager.h.

Member Function Documentation

◆ disableAudio()

void SoundManager::disableAudio ( )
inline

Definition at line 44 of file soundmanager.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ enableAudio()

void SoundManager::enableAudio ( )
inline

Definition at line 43 of file soundmanager.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ensureContext()

void SoundManager::ensureContext ( )

Definition at line 295 of file soundmanager.cpp.

Here is the caller graph for this function:

◆ getChannel()

SoundChannelPtr SoundManager::getChannel ( int  channel)

Definition at line 200 of file soundmanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init()

void SoundManager::init ( )

Definition at line 38 of file soundmanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isAudioEnabled()

bool SoundManager::isAudioEnabled ( )
inline

Definition at line 42 of file soundmanager.h.

Here is the caller graph for this function:

◆ play()

SoundSourcePtr SoundManager::play ( std::string  filename,
float  fadetime = 0,
float  gain = 0 
)

Definition at line 169 of file soundmanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ poll()

void SoundManager::poll ( )

Definition at line 87 of file soundmanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ preload()

void SoundManager::preload ( std::string  filename)

Definition at line 149 of file soundmanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resolveSoundFile()

std::string SoundManager::resolveSoundFile ( std::string  file)

Definition at line 288 of file soundmanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAudioEnabled()

void SoundManager::setAudioEnabled ( bool  enable)

Definition at line 135 of file soundmanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stopAll()

void SoundManager::stopAll ( )

Definition at line 208 of file soundmanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ terminate()

void SoundManager::terminate ( )

Definition at line 58 of file soundmanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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