Homepage Demos Overview Downloads Tutorials Reference
Credits

SoundManager.cc File Reference


Detailed Description

Implements SoundManager, which provides sound effects and caching services, as well as mixing buffers for the SoundPlay process.

Author:
ejt (Creator)
Author
ejt
Name
tekkotsu-2_2_2
Revision
1.19
State
Exp
Date
2004/12/22 23:13:04

Definition in file SoundManager.cc.

#include "Shared/Config.h"
#include "SoundManager.h"
#include "Shared/LockScope.h"
#include "WAV.h"
#include "Events/EventRouter.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fstream>
#include <OPENR/OSubject.h>
#include <OPENR/ObjcommEvent.h>

Include dependency graph for SoundManager.cc:

Go to the source code of this file.

Typedefs

typedef LockScope< ProcessID::NumProcesses > AutoLock
 for convenience when locking each of the functions

Variables

SoundManagersndman = NULL
 lets you play a sound from anywhere in your code - just a one liner!


Typedef Documentation

typedef LockScope<ProcessID::NumProcesses> AutoLock
 

for convenience when locking each of the functions

Definition at line 17 of file SoundManager.cc.


Variable Documentation

SoundManager* sndman = NULL
 

lets you play a sound from anywhere in your code - just a one liner!

Definition at line 14 of file SoundManager.cc.

Referenced by ControlBase::doCancel(), SoundPlay::DoDestroy(), SoundPlay::DoInit(), ControlBase::doNextItem(), ControlBase::doPrevItem(), ControlBase::doReadStdIn(), WaypointWalkControl::WaypointEditControl::doSelect(), WaypointWalkControl::doSelect(), WalkCalibration::doSelect(), SensorObserverControl::doSelect(), EventLogger::doSelect(), ControlBase::doSelect(), SoundPlay::doSendSound(), SoundTestBehavior::DoStart(), SoundNode::DoStart(), Controller::DoStart(), CameraBehavior::DoStart(), SpeakerServer::DoStop(), SoundTestBehavior::DoStop(), SoundPlay::DoStop(), Controller::DoStop(), CameraBehavior::DoStop(), WalkCalibration::err(), Transition::fire(), RandomTrans::fire(), MMCombo::GotSoundManager(), SoundPlay::GotSoundMsg(), CameraBehavior::openNextFile(), SoundTestBehavior::play(), WalkCalibration::processEvent(), SoundTestBehavior::processEvent(), CameraBehavior::processEvent(), BanditMachine::WaitNode::processEvent(), AutoGetupBehavior::processEvent(), SpeakerServer::QueueFrame(), WalkControllerBehavior::runCommand(), RunSequenceControl< SequenceSize >::selectedFile(), PlaySoundControl::selectedFile(), ControlBase::setHilights(), EmergencyStopMC::setStopped(), PaceTargetsMachine::setup(), SoundNode::StopPlay(), WalkCalibration::takeInput(), and PaceTargetsMachine::teardown().


Tekkotsu v2.2.2
Generated Tue Jan 4 15:44:59 2005 by Doxygen 1.4.0