#include <SoundRecorder.hpp>
Inheritance diagram for sfSoundRecorder:
Public Member Functions | |
sfSoundRecorder () | |
Default constructor. | |
virtual | ~sfSoundRecorder () |
Virtual destructor. | |
void | Start (unsigned int SampleRate=44100) |
Start the capture. | |
void | Stop () |
Stop the capture. | |
unsigned int | GetSampleRate () const |
Get the sample rate. | |
Static Public Member Functions | |
static bool | CanCapture () |
Tell if the system supports sound capture. |
Definition at line 39 of file SoundRecorder.hpp.
sfSoundRecorder::sfSoundRecorder | ( | ) |
sfSoundRecorder::~sfSoundRecorder | ( | ) | [virtual] |
void sfSoundRecorder::Start | ( | unsigned int | SampleRate = 44100 |
) |
Start the capture.
Warning : only one capture can happen at the same time
SampleRate | : Sound frequency (the more samples, the higher the quality) (44100 by default = CD quality) |
Definition at line 68 of file SoundRecorder.cpp.
void sfSoundRecorder::Stop | ( | ) |
unsigned int sfSoundRecorder::GetSampleRate | ( | ) | const |
Get the sample rate.
Definition at line 128 of file SoundRecorder.cpp.
bool sfSoundRecorder::CanCapture | ( | ) | [static] |
Tell if the system supports sound capture.
If not, this class won't be usable
Definition at line 138 of file SoundRecorder.cpp.