43 #ifndef _audiorecorder_h
44 #define _audiorecorder_h
47 #include "Audio/audioenumerations.h"
virtual UInt32 GetInternalBufferSize() const =0
Gets the currently set size of the internal buffer in bytes.
virtual Boole BeginRecording()=0
Starts recording audio from the initialized device.
virtual Boole SetInternalBufferSize(const UInt32 Size)=0
Sets the size of the internal buffer where the recorded audio may be placed.
virtual ~iRecorder()
Class destructor.
bool Boole
Generally acts a single bit, true or false.
virtual Boole SetFrequency(const UInt32 Freq)=0
Sets the frequency then the recorded audio will have.
virtual UInt32 GetBufferSize() const =0
Gets the size of the buffer storing the recorded audio.
All the definitions for datatypes as well as some basic conversion functions are defined here...
virtual Boole SetDeviceName(const String &DeviceName)=0
Sets the device to be used for recording by name.
virtual UInt32 GetRecordedAudio(void *OutputBuffer, UInt32 OutputBufferSize)=0
Writes the current contents of the recorder buffer to another buffer.
This is an interface class for the recording of audio.
virtual Boole SetBitConfiguration(const BitConfig Config)=0
Sets the bit configuration to use when recording data to the internal buffer.
virtual String GetDeviceName() const =0
Gets the name of the currently set recording device.
uint32_t UInt32
An 32-bit unsigned integer.
virtual UInt32 GetFrequency() const =0
Gets the frequency of the captured audio.
virtual BitConfig GetBitConfiguration() const =0
Gets the bit configuration for the audio captured by this recorder.
virtual UInt32 GetSampleSize() const =0
Gets the size of a single sample of recorded audio data.
virtual void StopRecording()=0
Stops the recording of audio if this is currently recording.
The bulk of the engine components go in this namspace.
virtual Boole Initialize(const String &DeviceName="", const UInt32 Freq=22050, const BitConfig Config=BC_16Bit_Mono, const UInt32 IntBufSize=8192)=0
Initializes the recording device with the current configuration.
iRecorder()
Class constructor.
virtual void Shutdown()=0
Shuts down and releases the recording device.
std::string String
A datatype used to a series of characters.
virtual Boole IsReady() const =0
Gets whether or not the current Recorder configuration is ready to start recording audio...
BitConfig
Used to describe the different bit configurations supported by this audio system. ...