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_1
Revision
1.14
State
Rel
Date
2003/07/25 20:18:08

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:

Include dependency graph

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.

Referenced by SoundManager::CopyTo(), SoundManager::GetRemainTime(), SoundManager::LoadBuffer(), SoundManager::LoadFile(), SoundManager::PausePlay(), SoundManager::Play(), SoundManager::PlayBuffer(), SoundManager::PlayFile(), SoundManager::Release(), SoundManager::ReleaseFile(), SoundManager::ResumePlay(), SoundManager::SetMode(), and SoundManager::StopPlay().


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 Transition::activate(), ControlBase::doCancel(), SoundPlay::DoDestroy(), SoundPlay::DoInit(), ControlBase::doNextItem(), ControlBase::doPrevItem(), ControlBase::doReadStdIn(), WalkCalibration::doSelect(), SensorObserverControl::doSelect(), EventLogger::doSelect(), ControlBase::doSelect(), SoundPlay::doSendSound(), StartupBehavior::DoStart(), SoundTestBehavior::DoStart(), Controller::DoStart(), CameraBehavior::DoStart(), SoundTestBehavior::DoStop(), SoundPlay::DoStop(), Controller::DoStop(), CameraBehavior::DoStop(), WalkCalibration::err(), MMCombo::GotSoundManager(), SoundPlay::GotSoundMsg(), CameraBehavior::openNextFile(), SoundTestBehavior::play(), WalkCalibration::processEvent(), SoundTestBehavior::processEvent(), CameraBehavior::processEvent(), BanditMachine::WaitNode::processEvent(), AutoGetupBehavior::processEvent(), WalkControllerBehavior::runCommand(), PlaySoundControl::selectedFile(), ControlBase::setHilights(), EmergencyStopMC::setStopped(), PaceTargetsMachine::setup(), WalkCalibration::takeInput(), and PaceTargetsMachine::teardown().


Tekkotsu v2.1
Generated Tue Mar 16 23:21:16 2004 by Doxygen 1.3.5