CVoiceRecorder Class Reference

The class that records voice from the microphone. More...

#include <SoundModule.h>

List of all members.

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.


Detailed Description

The class that records voice from the microphone.

Member Function Documentation

void CVoiceRecorder::Start ( ALenum  format,
ALfloat  freq 
)

Initiates the sound recording.

Parameters:
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.

Parameters:
data The address of the memory that the recorded data will be written.
Returns:
The length of the recorded data. 0 indicates no data is available.


The documentation for this class was generated from the following file:

Generated on Fri Jun 13 19:46:39 2008 for OPSIMUS by  doxygen 1.5.5