Loading...
Searching...
No Matches
SoundRecorder.h
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
82CSFML_AUDIO_API sfBool sfSoundRecorder_start(sfSoundRecorder* soundRecorder, unsigned int sampleRate);
104CSFML_AUDIO_API unsigned int sfSoundRecorder_getSampleRate(const sfSoundRecorder* soundRecorder);
135CSFML_AUDIO_API void sfSoundRecorder_setProcessingInterval(sfSoundRecorder* soundRecorder, sfTime interval);
176CSFML_AUDIO_API sfBool sfSoundRecorder_setDevice(sfSoundRecorder* soundRecorder, const char* name);
201CSFML_AUDIO_API void sfSoundRecorder_setChannelCount(sfSoundRecorder* soundRecorder, unsigned int channelCount);
214CSFML_AUDIO_API unsigned int sfSoundRecorder_getChannelCount(const sfSoundRecorder* soundRecorder);
sfSoundRecorder * sfSoundRecorder_create(sfSoundRecorderStartCallback onStart, sfSoundRecorderProcessCallback onProcess, sfSoundRecorderStopCallback onStop, void *userData)
Construct a new sound recorder from callback functions.
sfBool(* sfSoundRecorderProcessCallback)(const sfInt16 *, size_t, void *)
Type of the callback used to process audio data.
Definition SoundRecorder.h:38
const char ** sfSoundRecorder_getAvailableDevices(size_t *count)
Get a list of the names of all available audio capture devices.
const char * sfSoundRecorder_getDevice(sfSoundRecorder *soundRecorder)
Get the name of the current audio capture device.
void sfSoundRecorder_stop(sfSoundRecorder *soundRecorder)
Stop the capture of a sound recorder.
void sfSoundRecorder_setChannelCount(sfSoundRecorder *soundRecorder, unsigned int channelCount)
Set the channel count of the audio capture device.
unsigned int sfSoundRecorder_getSampleRate(const sfSoundRecorder *soundRecorder)
Get the sample rate of a sound recorder.
const char * sfSoundRecorder_getDefaultDevice(void)
Get the name of the default audio capture device.
sfBool sfSoundRecorder_setDevice(sfSoundRecorder *soundRecorder, const char *name)
Set the audio capture device.
sfBool sfSoundRecorder_isAvailable(void)
Check if the system supports audio capture.
void(* sfSoundRecorderStopCallback)(void *)
Type of the callback used when stopping a capture.
Definition SoundRecorder.h:39
unsigned int sfSoundRecorder_getChannelCount(const sfSoundRecorder *soundRecorder)
Get the number of channels used by this recorder.
sfBool(* sfSoundRecorderStartCallback)(void *)
Type of the callback used when starting a capture.
Definition SoundRecorder.h:37
void sfSoundRecorder_setProcessingInterval(sfSoundRecorder *soundRecorder, sfTime interval)
Set the processing interval.
sfBool sfSoundRecorder_start(sfSoundRecorder *soundRecorder, unsigned int sampleRate)
Start the capture of a sound recorder.
void sfSoundRecorder_destroy(sfSoundRecorder *soundRecorder)
Destroy a sound recorder.