#include <SoundRec.h>
Public Member Functions | |
SoundRec () | |
virtual | ~SoundRec () |
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 | Notify (const ONotifyEvent &event) |
Public Attributes | |
OSubject * | subject [numOfSubject] |
OObserver * | observer [numOfObserver] |
Private Member Functions | |
void | ChooseMic (OPrimitiveRequest req) |
void | NewSoundBuffer () |
void | DeleteSoundBuffer () |
int | CopyToSoundBuffer (OSoundVectorData *soundVecData) |
void | SaveSoundBufferAsWAV (char *path) |
Private Attributes | |
SoundRecState | soundRecState |
byte * | soundBuf |
byte * | soundBufPtr |
Static Private Attributes | |
const size_t | SOUND_BUFFER_SIZE = 1048576 |
const size_t | WAVE_HEADER_SIZE = 4 + 8 + 16 + 8 |
const size_t | FMTSIZE_WITHOUT_EXTINFO = 16 |
|
Definition at line 18 of file SoundRec.cc. References SRS_IDLE. |
|
Definition at line 31 of file SoundRec.h. |
|
Definition at line 108 of file SoundRec.cc. Referenced by DoInit(). |
|
Definition at line 151 of file SoundRec.cc. References byte, memcpy(), and soundBufPtr. Referenced by Notify(). |
|
Definition at line 142 of file SoundRec.cc. References soundBuf, and soundBufPtr. Referenced by DoDestroy(). |
|
Definition at line 71 of file SoundRec.cc. References DeleteSoundBuffer(). |
|
Definition at line 24 of file SoundRec.cc. References ChooseMic(), and NewSoundBuffer(). |
|
Definition at line 48 of file SoundRec.cc. References soundBuf, and soundRecState. |
|
Definition at line 60 of file SoundRec.cc. References soundRecState. |
|
Definition at line 130 of file SoundRec.cc. References byte, SOUND_BUFFER_SIZE, soundBuf, and soundBufPtr. Referenced by DoInit(). |
|
Definition at line 79 of file SoundRec.cc. References CopyToSoundBuffer(), observer, SaveSoundBufferAsWAV(), and soundRecState. |
|
Definition at line 162 of file SoundRec.cc. References longword, soundBuf, WAVE_HEADER_SIZE, and word. Referenced by Notify(). |
|
Definition at line 61 of file SoundRec.h. |
|
Definition at line 34 of file SoundRec.h. Referenced by Notify(). |
|
Definition at line 59 of file SoundRec.h. Referenced by NewSoundBuffer(). |
|
Definition at line 64 of file SoundRec.h. Referenced by DeleteSoundBuffer(), DoStart(), NewSoundBuffer(), and SaveSoundBufferAsWAV(). |
|
Definition at line 65 of file SoundRec.h. Referenced by CopyToSoundBuffer(), DeleteSoundBuffer(), and NewSoundBuffer(). |
|
Definition at line 63 of file SoundRec.h. |
|
Definition at line 33 of file SoundRec.h. |
|
Definition at line 60 of file SoundRec.h. Referenced by SaveSoundBufferAsWAV(). |