From c2a2445897af17adb56a32dcf111312763a575d4 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 2 Jul 2018 01:06:39 +0200 Subject: initial commit Signed-off-by: Toni Uhlig --- .../CSFML-2.1/doc/html/SoundRecorder_8h.htm | 321 +++++++++++++++++++++ 1 file changed, 321 insertions(+) create mode 100755 libghack/CSFML-2.1-windows-32bits/CSFML-2.1/doc/html/SoundRecorder_8h.htm (limited to 'libghack/CSFML-2.1-windows-32bits/CSFML-2.1/doc/html/SoundRecorder_8h.htm') diff --git a/libghack/CSFML-2.1-windows-32bits/CSFML-2.1/doc/html/SoundRecorder_8h.htm b/libghack/CSFML-2.1-windows-32bits/CSFML-2.1/doc/html/SoundRecorder_8h.htm new file mode 100755 index 0000000..212dea3 --- /dev/null +++ b/libghack/CSFML-2.1-windows-32bits/CSFML-2.1/doc/html/SoundRecorder_8h.htm @@ -0,0 +1,321 @@ + + + + CSFML - C binding of the Simple and Fast Multimedia Library + + + + + + +
+ + + + +
+
+ +
+
SoundRecorder.h File Reference
+
+
+
#include <SFML/Audio/Export.h>
+#include <SFML/Audio/Types.h>
+#include <stddef.h>
+
+

Go to the source code of this file.

+ + + + + + + + + + + +

+Typedefs

typedef sfBool(* sfSoundRecorderStartCallback )(void *)
 Type of the callback used when starting a capture.
 
typedef sfBool(* sfSoundRecorderProcessCallback )(const sfInt16 *, size_t, void *)
 Type of the callback used to process audio data.
 
typedef void(* sfSoundRecorderStopCallback )(void *)
 Type of the callback used when stopping a capture.
 
+ + + + + + + + + + + + + + + + + + + +

+Functions

CSFML_AUDIO_API sfSoundRecordersfSoundRecorder_create (sfSoundRecorderStartCallback onStart, sfSoundRecorderProcessCallback onProcess, sfSoundRecorderStopCallback onStop, void *userData)
 Construct a new sound recorder from callback functions.
 
CSFML_AUDIO_API void sfSoundRecorder_destroy (sfSoundRecorder *soundRecorder)
 Destroy a sound recorder.
 
CSFML_AUDIO_API void sfSoundRecorder_start (sfSoundRecorder *soundRecorder, unsigned int sampleRate)
 Start the capture of a sound recorder.
 
CSFML_AUDIO_API void sfSoundRecorder_stop (sfSoundRecorder *soundRecorder)
 Stop the capture of a sound recorder.
 
CSFML_AUDIO_API unsigned int sfSoundRecorder_getSampleRate (const sfSoundRecorder *soundRecorder)
 Get the sample rate of a sound recorder.
 
CSFML_AUDIO_API sfBool sfSoundRecorder_isAvailable (void)
 Check if the system supports audio capture.
 
+

Typedef Documentation

+ +
+
+ + + + +
typedef sfBool(* sfSoundRecorderProcessCallback)(const sfInt16 *, size_t, void *)
+
+ +

Type of the callback used to process audio data.

+ +

Definition at line 37 of file SoundRecorder.h.

+ +
+
+ +
+
+ + + + +
typedef sfBool(* sfSoundRecorderStartCallback)(void *)
+
+ +

Type of the callback used when starting a capture.

+ +

Definition at line 36 of file SoundRecorder.h.

+ +
+
+ +
+
+ + + + +
typedef void(* sfSoundRecorderStopCallback)(void *)
+
+ +

Type of the callback used when stopping a capture.

+ +

Definition at line 38 of file SoundRecorder.h.

+ +
+
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CSFML_AUDIO_API sfSoundRecorder* sfSoundRecorder_create (sfSoundRecorderStartCallback onStart,
sfSoundRecorderProcessCallback onProcess,
sfSoundRecorderStopCallback onStop,
void * userData 
)
+
+ +

Construct a new sound recorder from callback functions.

+
Parameters
+ + + + + +
onStartCallback function which will be called when a new capture starts (can be NULL)
onProcessCallback function which will be called each time there's audio data to process
onStopCallback function which will be called when the current capture stops (can be NULL)
userDataData to pass to the callback function (can be NULL)
+
+
+
Returns
A new sfSoundRecorder object (NULL if failed)
+ +
+
+ +
+
+ + + + + + + + +
CSFML_AUDIO_API void sfSoundRecorder_destroy (sfSoundRecordersoundRecorder)
+
+ +

Destroy a sound recorder.

+
Parameters
+ + +
soundRecorderSound recorder to destroy
+
+
+ +
+
+ +
+
+ + + + + + + + +
CSFML_AUDIO_API unsigned int sfSoundRecorder_getSampleRate (const sfSoundRecordersoundRecorder)
+
+ +

Get the sample rate of a sound recorder.

+

The sample rate defines the number of audio samples captured per second. The higher, the better the quality (for example, 44100 samples/sec is CD quality).

+
Parameters
+ + +
soundRecorderSound recorder object
+
+
+
Returns
Sample rate, in samples per second
+ +
+
+ +
+
+ + + + + + + + +
CSFML_AUDIO_API sfBool sfSoundRecorder_isAvailable (void )
+
+ +

Check if the system supports audio capture.

+

This function should always be called before using the audio capture features. If it returns false, then any attempt to use sfSoundRecorder will fail.

+
Returns
sfTrue if audio capture is supported, sfFalse otherwise
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
CSFML_AUDIO_API void sfSoundRecorder_start (sfSoundRecordersoundRecorder,
unsigned int sampleRate 
)
+
+ +

Start the capture of a sound recorder.

+

The sampleRate parameter defines the number of audio samples captured per second. The higher, the better the quality (for example, 44100 samples/sec is CD quality). This function uses its own thread so that it doesn't block the rest of the program while the capture runs. Please note that only one capture can happen at the same time.

+
Parameters
+ + + +
soundRecorderSound recorder object
sampleRateDesired capture rate, in number of samples per second
+
+
+ +
+
+ +
+
+ + + + + + + + +
CSFML_AUDIO_API void sfSoundRecorder_stop (sfSoundRecordersoundRecorder)
+
+ +

Stop the capture of a sound recorder.

+
Parameters
+ + +
soundRecorderSound recorder object
+
+
+ +
+
+
+ + + + -- cgit v1.2.3