25 #ifndef SFML_SOUNDRECORDER_H 26 #define SFML_SOUNDRECORDER_H 217 #endif // SFML_SOUNDRECORDER_H CSFML_AUDIO_API const char * sfSoundRecorder_getDevice(sfSoundRecorder *soundRecorder)
Get the name of the current audio capture device.
CSFML_AUDIO_API const char * sfSoundRecorder_getDefaultDevice()
Get the name of the default audio capture device.
CSFML_AUDIO_API sfBool sfSoundRecorder_start(sfSoundRecorder *soundRecorder, unsigned int sampleRate)
Start the capture of a sound recorder.
CSFML_AUDIO_API const char ** sfSoundRecorder_getAvailableDevices(size_t *count)
Get a list of the names of all availabe audio capture devices.
sfBool(* sfSoundRecorderStartCallback)(void *)
Type of the callback used when starting a capture.
CSFML_AUDIO_API void sfSoundRecorder_setChannelCount(sfSoundRecorder *soundRecorder, unsigned int channelCount)
Set the channel count of the audio capture device.
CSFML_AUDIO_API void sfSoundRecorder_destroy(sfSoundRecorder *soundRecorder)
Destroy a sound recorder.
CSFML_AUDIO_API sfBool sfSoundRecorder_isAvailable(void)
Check if the system supports audio capture.
CSFML_AUDIO_API void sfSoundRecorder_setProcessingInterval(sfSoundRecorder *soundRecorder, sfTime interval)
Set the processing interval.
CSFML_AUDIO_API sfSoundRecorder * sfSoundRecorder_create(sfSoundRecorderStartCallback onStart, sfSoundRecorderProcessCallback onProcess, sfSoundRecorderStopCallback onStop, void *userData)
Construct a new sound recorder from callback functions.
void(* sfSoundRecorderStopCallback)(void *)
Type of the callback used when stopping a capture.
struct sfSoundRecorder sfSoundRecorder
CSFML_AUDIO_API sfBool sfSoundRecorder_setDevice(sfSoundRecorder *soundRecorder, const char *name)
Set the audio capture device.
sfBool(* sfSoundRecorderProcessCallback)(const sfInt16 *, size_t, void *)
Type of the callback used to process audio data.
CSFML_AUDIO_API void sfSoundRecorder_stop(sfSoundRecorder *soundRecorder)
Stop the capture of a sound recorder.
CSFML_AUDIO_API unsigned int sfSoundRecorder_getChannelCount(const sfSoundRecorder *soundRecorder)
Get the number of channels used by this recorder.
CSFML_AUDIO_API unsigned int sfSoundRecorder_getSampleRate(const sfSoundRecorder *soundRecorder)
Get the sample rate of a sound recorder.