#include <LostFoundSound.h>
Public Member Functions | |
LostFoundSound () | |
virtual | ~LostFoundSound () |
virtual OStatus | DoInit (const OSystemEvent &event) |
virtual OStatus | DoStart (const OSystemEvent &event) |
virtual OStatus | DoStop (const OSystemEvent &event) |
virtual OStatus | DoDestroy (const OSystemEvent &event) |
void | NotifyCommand (const ONotifyEvent &event) |
void | ReadyPlay (const OReadyEvent &event) |
Public Attributes | |
OSubject * | subject [numOfSubject] |
OObserver * | observer [numOfObserver] |
Private Member Functions | |
void | Play (BallTrackingHeadCommand *cmd) |
void | OpenSpeaker () |
void | NewSoundVectorData () |
void | LoadWAV () |
void | SetPowerAndVolume () |
WAVError | CopyWAVTo (RCRegion *region) |
RCRegion * | FindFreeRegion () |
bool | IsAllRegionFree () |
Private Attributes | |
LostFoundSoundState | lfsoundState |
OPrimitiveID | speakerID |
ODesignDataID | foundSoundID |
WAV | foundWAV |
ODesignDataID | lostSoundID |
WAV | lostWAV |
WAV * | playingWAV |
RCRegion * | region [SOUND_NUM_BUFFER] |
Static Private Attributes | |
const size_t | SOUND_UNIT_SIZE = 256 |
const size_t | SOUND_NUM_BUFFER = 2 |
|
Definition at line 17 of file LostFoundSound.cc. |
|
Definition at line 35 of file LostFoundSound.h. |
|
Definition at line 263 of file LostFoundSound.cc. References WAV::CopyTo(), and playingWAV. Referenced by Play(), and ReadyPlay(). |
|
Definition at line 71 of file LostFoundSound.cc. References foundSoundID, and lostSoundID. |
|
Definition at line 28 of file LostFoundSound.cc. References LoadWAV(), NewSoundVectorData(), OpenSpeaker(), and SetPowerAndVolume(). |
|
Definition at line 45 of file LostFoundSound.cc. References lfsoundState. |
|
Definition at line 58 of file LostFoundSound.cc. References lfsoundState. |
|
Definition at line 270 of file LostFoundSound.cc. References region. Referenced by ReadyPlay(). |
|
Definition at line 280 of file LostFoundSound.cc. References region. Referenced by ReadyPlay(). |
|
Definition at line 193 of file LostFoundSound.cc. References byte, foundSoundID, foundWAV, lostSoundID, lostWAV, and WAV::Set(). Referenced by DoInit(). |
|
Definition at line 164 of file LostFoundSound.cc. References region, WAV::Set(), SOUND_UNIT_SIZE, and speakerID. Referenced by DoInit(). |
|
Definition at line 80 of file LostFoundSound.cc. References BTH_BUSY, BTH_INVALID_ARG, BTHCMD_PLAY_FOUND_SOUND, lfsoundState, observer, Play(), subject, and BallTrackingHeadCommand::type. |
|
Definition at line 153 of file LostFoundSound.cc. References speakerID. Referenced by DoInit(). |
|
Definition at line 134 of file LostFoundSound.cc. References CopyWAVTo(), playingWAV, region, WAV::Rewind(), subject, and BallTrackingHeadCommand::type. Referenced by NotifyCommand(). |
|
Definition at line 111 of file LostFoundSound.cc. References BTH_SUCCESS, CopyWAVTo(), FindFreeRegion(), IsAllRegionFree(), lfsoundState, and subject. |
|
Definition at line 221 of file LostFoundSound.cc. References speakerID. Referenced by DoInit(). |
|
Definition at line 66 of file LostFoundSound.h. Referenced by DoDestroy(), and LoadWAV(). |
|
Definition at line 67 of file LostFoundSound.h. Referenced by LoadWAV(). |
|
Definition at line 64 of file LostFoundSound.h. Referenced by DoStart(), DoStop(), NotifyCommand(), and ReadyPlay(). |
|
Definition at line 68 of file LostFoundSound.h. Referenced by DoDestroy(), and LoadWAV(). |
|
Definition at line 69 of file LostFoundSound.h. Referenced by LoadWAV(). |
|
Definition at line 38 of file LostFoundSound.h. Referenced by NotifyCommand(). |
|
Definition at line 70 of file LostFoundSound.h. Referenced by CopyWAVTo(), and Play(). |
|
Definition at line 71 of file LostFoundSound.h. Referenced by FindFreeRegion(), IsAllRegionFree(), LostFoundSound(), NewSoundVectorData(), and Play(). |
|
Definition at line 62 of file LostFoundSound.h. |
|
Definition at line 61 of file LostFoundSound.h. Referenced by NewSoundVectorData(). |
|
Definition at line 65 of file LostFoundSound.h. Referenced by NewSoundVectorData(), OpenSpeaker(), and SetPowerAndVolume(). |
|
Definition at line 37 of file LostFoundSound.h. Referenced by NotifyCommand(), Play(), and ReadyPlay(). |