Config::sound_config Struct Reference#include <Config.h>
List of all members.
Detailed Description
sound information
Definition at line 167 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 & Destructor Documentation
Config::sound_config::sound_config |
( |
|
) |
[inline] |
|
Member Function Documentation
std::string Config::sound_config::makePath |
( |
std::string |
name |
) |
[inline] |
|
|
returns an absolute path if is relative (to root), otherwise just name
Definition at line 175 of file Config.h. |
Member Data Documentation
|
sample bit depth, either 8 or 16
Definition at line 171 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(). |
The documentation for this struct was generated from the following file:
|