Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Config::sound_config Class Reference

#include <Config.h>

Inheritance diagram for Config::sound_config:

List of all members.


Detailed Description

sound information

Definition at line 593 of file Config.h.


Public Types

enum  volume_levels { MUTE = ospkvolinfdB, LOW = ospkvol25dB, MID = ospkvol18dB, HIGH = ospkvol10dB }
 Provides some symbolic volume levels, although values are based on actual volume in decibels. More...

Public Member Functions

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

Public Attributes

Configthisconfig
 pointer back to the containing config object
plist::Primitive< std::string > root
 path to sound clips
plist::NamedEnumeration
< volume_levels
volume
 volume in decibels - the value is interpreted as a signed short, where 0 is full volume, 0x8000 is mute
plist::Primitive< unsigned int > sample_rate
 sample rate to send to system, currently only 8000 or 16000 supported
plist::Primitive< unsigned int > sample_bits
 sample bit depth, either 8 or 16
plist::ArrayOf
< plist::Primitive
< std::string > > 
preload
 list of sounds to preload at boot
plist::Primitive< float > pitchConfidenceThreshold
 confidence threshold required to generate a pitch event [0-1]
Config::sound_config::streaming_config streaming

Private Member Functions

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

Classes

class  streaming_config
 audio streaming configuration More...

Member Enumeration Documentation

Provides some symbolic volume levels, although values are based on actual volume in decibels.

The value is interpreted as a signed short, where 0 is full volume, 0x8000 is mute

Enumerator:
MUTE 
LOW 
MID 
HIGH 

Definition at line 635 of file Config.h.


Constructor & Destructor Documentation

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

constructor

Definition at line 596 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 621 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

pointer back to the containing config object

Definition at line 630 of file Config.h.

path to sound clips

Definition at line 631 of file Config.h.

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

Definition at line 636 of file Config.h.

list of sounds to preload at boot

Definition at line 640 of file Config.h.

confidence threshold required to generate a pitch event [0-1]

Definition at line 641 of file Config.h.

Referenced by PitchDetector::is_pitch().


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

Tekkotsu v4.0
Generated Thu Nov 22 00:58:13 2007 by Doxygen 1.5.4