#include <SoundPlay.h>
Public Member Functions | |
SoundPlay () | |
virtual | ~SoundPlay () |
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 | Ready (const OReadyEvent &event) |
Public Attributes | |
OSubject * | subject [numOfSubject] |
OObserver * | observer [numOfObserver] |
Private Member Functions | |
void | OpenSpeaker () |
void | NewSoundVectorData () |
void | LoadWAV () |
void | SetPowerAndVolume () |
WAVError | CopyWAVTo (RCRegion *region) |
RCRegion * | FindFreeRegion () |
Private Attributes | |
SoundPlayState | soundPlayState |
OPrimitiveID | speakerID |
ODesignDataID | wavID |
WAV | wav |
RCRegion * | region [SOUND_NUM_BUFFER] |
Static Private Attributes | |
const size_t | SOUND_NUM_BUFFER = 2 |
|
Definition at line 17 of file SoundPlay.cc. |
|
Definition at line 32 of file SoundPlay.h. |
|
Definition at line 231 of file SoundPlay.cc. References WAV::CopyTo(), WAV::Rewind(), wav, and WAVError. |
|
Definition at line 74 of file SoundPlay.cc. References wavID. |
|
Definition at line 25 of file SoundPlay.cc. References LoadWAV(), NewSoundVectorData(), OpenSpeaker(), and SetPowerAndVolume(). |
|
Definition at line 43 of file SoundPlay.cc. References CopyWAVTo(), region, soundPlayState, and subject. |
|
Definition at line 61 of file SoundPlay.cc. References soundPlayState. |
|
Definition at line 245 of file SoundPlay.cc. References region. Referenced by Ready(). |
|
Definition at line 155 of file SoundPlay.cc. References byte, WAV::Set(), wav, WAVError, and wavID. Referenced by DoInit(). |
|
Definition at line 124 of file SoundPlay.cc. References WAV::GetSoundUnitSize(), region, WAV::Set(), speakerID, and wav. Referenced by DoInit(). |
|
Definition at line 98 of file SoundPlay.cc. References speakerID. Referenced by DoInit(). |
|
Definition at line 82 of file SoundPlay.cc. References CopyWAVTo(), FindFreeRegion(), soundPlayState, and subject. |
|
Definition at line 178 of file SoundPlay.cc. References WAV::GetBitsPerSample(), WAV::GetSamplingRate(), speakerID, and wav. Referenced by DoInit(). |
|
Definition at line 35 of file SoundPlay.h. |
|
Definition at line 58 of file SoundPlay.h. Referenced by DoStart(), FindFreeRegion(), NewSoundVectorData(), and SoundPlay(). |
|
Definition at line 45 of file SoundPlay.h. |
|
Definition at line 54 of file SoundPlay.h. |
|
Definition at line 55 of file SoundPlay.h. Referenced by NewSoundVectorData(), OpenSpeaker(), and SetPowerAndVolume(). |
|
Definition at line 34 of file SoundPlay.h. |
|
Definition at line 57 of file SoundPlay.h. Referenced by CopyWAVTo(), LoadWAV(), NewSoundVectorData(), and SetPowerAndVolume(). |
|
Definition at line 56 of file SoundPlay.h. Referenced by DoDestroy(), and LoadWAV(). |