ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Wintermute::BaseSound Class Reference

#include <base_sound.h>

Inheritance diagram for Wintermute::BaseSound:
Collaboration diagram for Wintermute::BaseSound:

List of all members.

Public Member Functions

bool setPan (float pan)
int getVolume ()
int getVolumePercent ()
bool setVolumePercent (int percent)
bool setVolume (int volume)
bool setPrivateVolume (int volume)
bool setLoopStart (uint32 pos)
uint32 getPositionTime ()
bool setPositionTime (uint32 time)
bool isPlaying ()
bool isPaused ()
bool resume ()
bool pause (bool freezePaused=false)
bool stop ()
bool play (bool looping=false)
uint32 getLength ()
const char * getFilename ()
bool setSoundSimple ()
bool setSound (const Common::String &filename, Audio::Mixer::SoundType type=Audio::Mixer::kSFXSoundType, bool streamed=false)
 BaseSound (BaseGame *inGame)
 ~BaseSound () override
bool applyFX (TSFXType type=SFX_NONE, float param1=0, float param2=0, float param3=0, float param4=0)

Private Attributes

Common::String _soundFilename
bool _soundStreamed
Audio::Mixer::SoundType _soundType
int32 _soundPrivateVolume
uint32 _soundLoopStart
uint32 _soundPosition
bool _soundPlaying
bool _soundLooping
bool _soundPaused
bool _soundFreezePaused
TSFXType _sFXType
float _sFXParam1
float _sFXParam2
float _sFXParam3
float _sFXParam4
BaseSoundBuffer_sound

Detailed Description

Definition at line 40 of file base_sound.h.


Constructor & Destructor Documentation

Wintermute::BaseSound::BaseSound ( BaseGame inGame  ) 

Definition at line 38 of file base_sound.cpp.

Wintermute::BaseSound::~BaseSound (  )  [override]

Definition at line 56 of file base_sound.cpp.


Member Function Documentation

bool Wintermute::BaseSound::applyFX ( TSFXType  type = SFX_NONE,
float  param1 = 0,
float  param2 = 0,
float  param3 = 0,
float  param4 = 0 
)

Definition at line 273 of file base_sound.cpp.

const char* Wintermute::BaseSound::getFilename (  )  [inline]

Definition at line 59 of file base_sound.h.

uint32 Wintermute::BaseSound::getLength (  ) 

Definition at line 103 of file base_sound.cpp.

uint32 Wintermute::BaseSound::getPositionTime (  ) 

Definition at line 203 of file base_sound.cpp.

int Wintermute::BaseSound::getVolume (  ) 

Definition at line 248 of file base_sound.cpp.

int Wintermute::BaseSound::getVolumePercent (  ) 

Definition at line 240 of file base_sound.cpp.

bool Wintermute::BaseSound::isPaused (  ) 

Definition at line 187 of file base_sound.cpp.

bool Wintermute::BaseSound::isPlaying (  ) 

Definition at line 183 of file base_sound.cpp.

bool Wintermute::BaseSound::pause ( bool  freezePaused = false  ) 

Definition at line 129 of file base_sound.cpp.

bool Wintermute::BaseSound::play ( bool  looping = false  ) 

Definition at line 111 of file base_sound.cpp.

bool Wintermute::BaseSound::resume (  ) 

Definition at line 141 of file base_sound.cpp.

bool Wintermute::BaseSound::setLoopStart ( uint32  pos  ) 

Definition at line 256 of file base_sound.cpp.

bool Wintermute::BaseSound::setPan ( float  pan  ) 

Definition at line 265 of file base_sound.cpp.

bool Wintermute::BaseSound::setPositionTime ( uint32  time  ) 

Definition at line 191 of file base_sound.cpp.

bool Wintermute::BaseSound::setPrivateVolume ( int  volume  ) 

Definition at line 231 of file base_sound.cpp.

bool Wintermute::BaseSound::setSound ( const Common::String filename,
Audio::Mixer::SoundType  type = Audio::Mixer::kSFXSoundType,
bool  streamed = false 
)

Definition at line 63 of file base_sound.cpp.

bool Wintermute::BaseSound::setSoundSimple (  ) 

Definition at line 83 of file base_sound.cpp.

bool Wintermute::BaseSound::setVolume ( int  volume  ) 

Definition at line 223 of file base_sound.cpp.

bool Wintermute::BaseSound::setVolumePercent ( int  percent  ) 

Definition at line 215 of file base_sound.cpp.

bool Wintermute::BaseSound::stop (  ) 

Definition at line 120 of file base_sound.cpp.


Member Data Documentation

Definition at line 78 of file base_sound.h.

Definition at line 79 of file base_sound.h.

Definition at line 80 of file base_sound.h.

Definition at line 81 of file base_sound.h.

Definition at line 77 of file base_sound.h.

Definition at line 82 of file base_sound.h.

Definition at line 76 of file base_sound.h.

Definition at line 74 of file base_sound.h.

Definition at line 71 of file base_sound.h.

Definition at line 75 of file base_sound.h.

Definition at line 73 of file base_sound.h.

Definition at line 72 of file base_sound.h.

Definition at line 70 of file base_sound.h.

Definition at line 68 of file base_sound.h.


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


Generated on Sat Sep 26 2020 05:04:15 for ResidualVM by doxygen 1.7.1
curved edge   curved edge