5 #ifndef __I_IRRKLANG_AUDIO_RECORDER_H_INCLUDED__
6 #define __I_IRRKLANG_AUDIO_RECORDER_H_INCLUDED__
14 class ICapturedAudioDataReceiver;
36 ik_s32 channelCount=1) = 0;
53 ik_s32 channelCount=1) = 0;
virtual SAudioStreamFormat getAudioFormat()=0
Returns the audio format of the recorded audio data.
Interface to be implemented by the user if access to the recorded audio data is needed.
Base class of most objects of the irrKlang.
virtual void OnReceiveAudioDataStreamChunk(unsigned char *audioData, unsigned long lengthInBytes)=0
Gets called once for each captured audio data chunk.
signed int ik_s32
32 bit signed variable.
virtual void clearRecordedAudioDataBuffer()=0
Clears recorded audio data buffer, freeing memory.
Everything in the irrKlang Sound Engine can be found in this namespace.
A sound source describes an input file (.ogg, .mp3, .wav or similar) and its default settings...
virtual const char * getDriverName()=0
returns the name of the sound driver, like 'ALSA' for the alsa device.
virtual bool isRecording()=0
Returns if the recorder is currently recording audio.
virtual ISoundSource * addSoundSourceFromRecordedAudio(const char *soundName)=0
Creates a sound source for the recorded audio data.
virtual bool startRecordingBufferedAudio(ik_s32 sampleRate=22000, ESampleFormat sampleFormat=ESF_S16, ik_s32 channelCount=1)=0
Starts recording audio.
16 bit, signed (-32k;32k)
virtual void stopRecordingAudio()=0
Stops recording audio.
ESampleFormat
audio sample data format enumeration for supported formats
virtual void * getRecordedAudioData()=0
Returns a pointer to the recorded audio data.
Interface to an audio recorder. Create it using the createIrrKlangAudioRecorder() function...
virtual bool startRecordingCustomHandledAudio(ICapturedAudioDataReceiver *receiver, ik_s32 sampleRate=22000, ESampleFormat sampleFormat=ESF_S16, ik_s32 channelCount=1)=0
Starts recording audio.