Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <Config.h>
Definition at line 162 of file Config.h.
Public Member Functions | |
std::string | makePath (std::string name) |
returns an absolute path if is relative (to root), otherwise just name | |
sound_config () | |
constructor | |
Public Attributes | |
std::string | root |
path to sound clips | |
unsigned int | volume |
volume in decibels - the value is interpreted as a signed short, where 0 is full volume, 0x8000 is mute | |
unsigned int | sample_rate |
sample rate to send to system, currently only 8000 or 16000 supported | |
unsigned int | sample_bits |
sample bit depth, either 8 or 16 | |
std::vector< std::string > | preload |
list of sounds to preload at boot |
|
constructor
|
|
returns an absolute path if is relative (to root), otherwise just name
|
|
list of sounds to preload at boot
Definition at line 167 of file Config.h. Referenced by SoundPlay::DoDestroy(), SoundPlay::DoInit(), Config::setValue(), and sound_config(). |
|
path to sound clips
Definition at line 163 of file Config.h. Referenced by SoundManager::makePath(), makePath(), Config::setValue(), and sound_config(). |
|
sample bit depth, either 8 or 16
Definition at line 166 of file Config.h. Referenced by SoundManager::CopyTo(), SoundManager::endPlay(), SoundManager::GetRemainTime(), SoundManager::LoadBuffer(), SoundManager::LoadFile(), SoundPlay::NewSoundVectorData(), SoundPlay::SetPowerAndVolume(), Config::setValue(), sound_config(), and SoundManager::StopPlay(). |
|
sample rate to send to system, currently only 8000 or 16000 supported
Definition at line 165 of file Config.h. Referenced by SoundManager::endPlay(), SoundManager::GetRemainTime(), SoundManager::LoadFile(), SoundPlay::NewSoundVectorData(), SoundPlay::SetPowerAndVolume(), Config::setValue(), sound_config(), and SoundManager::StopPlay(). |
|
volume in decibels - the value is interpreted as a signed short, where 0 is full volume, 0x8000 is mute
Definition at line 164 of file Config.h. Referenced by SoundPlay::SetPowerAndVolume(), Config::setValue(), and sound_config(). |
Tekkotsu v2.0 |
Generated Wed Jan 21 03:23:06 2004 by Doxygen 1.3.4 |