Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Config::sound_config Struct Reference

#include <Config.h>

List of all members.


Detailed Description

sound information

Definition at line 269 of file Config.h.

Public Member Functions

std::string makePath (const std::string &name)
 returns an absolute path if is relative (to root), otherwise just name
 sound_config (Config *c)
 constructor

Public Attributes

Configthisconfig
 pointer back to the containing config object
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
Config::sound_config::streaming_config streaming
 audio streaming configuration

Private Member Functions

 sound_config (const sound_config &)
 don't call
sound_configoperator= (const sound_config &)
 don't call

Classes

struct  streaming_config
 audio streaming configuration More...


Constructor & Destructor Documentation

Config::sound_config::sound_config Config c  )  [inline]
 

constructor

Definition at line 306 of file Config.h.

Config::sound_config::sound_config const sound_config  )  [private]
 

don't call


Member Function Documentation

std::string Config::sound_config::makePath const std::string &  name  )  [inline]
 

returns an absolute path if is relative (to root), otherwise just name

Definition at line 278 of file Config.h.

Referenced by SoundManager::LoadFile(), and SoundManager::ReleaseFile().

sound_config& Config::sound_config::operator= const sound_config  )  [private]
 

don't call


Member Data Documentation

std::vector<std::string> Config::sound_config::preload
 

list of sounds to preload at boot

Definition at line 275 of file Config.h.

Referenced by Config::setValue().

std::string Config::sound_config::root
 

path to sound clips

Definition at line 271 of file Config.h.

Referenced by makePath(), and Config::setValue().

unsigned int Config::sound_config::sample_bits
 

sample bit depth, either 8 or 16

Definition at line 274 of file Config.h.

Referenced by SpeakerServer::AddPacket(), SoundManager::CopyTo(), SoundManager::endPlay(), SoundManager::GetRemainTime(), SoundManager::LoadBuffer(), SoundManager::LoadFile(), SpeakerServer::ResampleForSpeaker(), Config::setValue(), and SoundManager::StopPlay().

unsigned int Config::sound_config::sample_rate
 

sample rate to send to system, currently only 8000 or 16000 supported

Definition at line 273 of file Config.h.

Referenced by SpeakerServer::AddPacket(), SoundManager::endPlay(), SoundManager::GetRemainTime(), SpeakerServer::GotSocketData(), SoundManager::LoadFile(), SpeakerServer::ResampleForSpeaker(), Config::setValue(), and SoundManager::StopPlay().

struct Config::sound_config::streaming_config Config::sound_config::streaming
 

audio streaming configuration

Referenced by SpeakerServer::AddPacket(), SpeakerServer::DoStart(), MicrophoneServer::DoStart(), MicrophoneServer::processEvent(), SpeakerServer::QueueFrame(), and Config::setValue().

Config* Config::sound_config::thisconfig
 

pointer back to the containing config object

Definition at line 270 of file Config.h.

Referenced by makePath().

unsigned int Config::sound_config::volume
 

volume in decibels - the value is interpreted as a signed short, where 0 is full volume, 0x8000 is mute

Definition at line 272 of file Config.h.

Referenced by Config::setValue().


The documentation for this struct was generated from the following file:

Tekkotsu v2.4.1
Generated Tue Aug 16 16:34:59 2005 by Doxygen 1.4.4