Module
|
#include <AudioInterface.hpp>
Public Member Functions | |
AudioInterface () | |
virtual Sound * | playSound (SoundClip *) |
virtual Sound * | playSound (SoundClip *, float, float)=0 |
virtual SoundClip * | loadSoundClip (const std::string &, const std::string &) |
virtual void | unloadSoundClip (SoundClip *)=0 |
void | debugAudio () |
Protected Member Functions | |
void | start () |
void | run () |
virtual void | replaySound (Sound *)=0 |
virtual void | resumeSound (Sound *)=0 |
virtual void | pauseSound (Sound *)=0 |
virtual void | stopSound (Sound *)=0 |
virtual void | setDevice ()=0 |
virtual void | setListener (GameObject *)=0 |
virtual void | setFrequency (SoundClip *, unsigned int) |
Protected Attributes | |
ModuleGame * | game |
GameObject * | listener |
Book< Sound > | sounds |
Book< SoundClip > | clips |
Friends | |
class | Sound |
class | SoundClip |
class | ModuleGame |
The AudioInterface is one of Module's four core interfaces, and handles its titular audio. It may be used to load and or play sounds.
AudioInterface::AudioInterface | ( | ) |
void AudioInterface::debugAudio | ( | ) |
A debug method, which prints out information about the current state of game audio.
|
virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedvirtual |
Overrides ThreadObject::run()
Implements Module::ThreadObject.
|
protectedpure virtual |
|
protectedvirtual |
|
protectedpure virtual |
|
protected |
Starts the thread for run.
|
protectedpure virtual |
|
pure virtual |
|
friend |
|
friend |
|
friend |
|
protected |
The game that this is a part of
|
protected |
The listener GameObject