#include <SoundModule.h>
Public Member Functions | |
CVoiceRecorder () | |
Constructor. This does not initiate the sound recording. | |
void | Start (ALenum format, ALfloat freq) |
int | GetAvailableData (ALbyte *data) |
void | Stop () |
Stops the recording. |
void CVoiceRecorder::Start | ( | ALenum | format, | |
ALfloat | freq | |||
) |
Initiates the sound recording.
format | One of AL_FORMAT_* values denoting the sound format of the played voice. | |
freq | A floating point value denoting the frequency of the played voice. |
int CVoiceRecorder::GetAvailableData | ( | ALbyte * | data | ) |
Acquires the recorded sound data. The data will be available in chunks.
data | The address of the memory that the recorded data will be written. |