SFML-2.3.2: SFML bindings

Safe HaskellSafe-Inferred
LanguageHaskell98

SFML.Audio.SFSoundRecorder

Documentation

class SFSoundRecorder a where Source

Methods

startRecording Source

Arguments

:: a 
-> Int

Desired capture rate, in number of samples per second

-> IO Bool 

Start the capture of a sound recorder.

The sample rate 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.

Return True if start of capture was successful, False otherwise.

stopRecording :: a -> IO () Source

Stop the capture of a sound recorder.