SoundRecorder is an interface for capturing sound data, it is meant to be used as a base class.
More...
#include <SoundRecorder.hpp>
|
| virtual | ~SoundRecorder () |
| | 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 bool | CanCapture () |
| | Tell if the system supports sound capture.
|
| |
|
|
typedef void(* | FuncType )(void *) |
| |
|
| void | Launch () |
| | Create and run the thread.
|
| |
| void | Wait () |
| | Wait until the thread finishes.
|
| |
| void | Terminate () |
| | Terminate the thread Terminating a thread with this function is not safe, you should rather try to make the thread function terminate by itself.
|
| |
SoundRecorder is an interface for capturing sound data, it is meant to be used as a base class.
Definition at line 41 of file SoundRecorder.hpp.
| virtual sf::SoundRecorder::~SoundRecorder |
( |
| ) |
|
|
virtual |
| sf::SoundRecorder::SoundRecorder |
( |
| ) |
|
|
protected |
| static bool sf::SoundRecorder::CanCapture |
( |
| ) |
|
|
static |
Tell if the system supports sound capture.
If not, this class won't be usable
- Returns
- True if audio capture is supported
| unsigned int sf::SoundRecorder::GetSampleRate |
( |
| ) |
const |
Get the sample rate.
- Returns
- Frequency, in samples per second
| void sf::SoundRecorder::Start |
( |
unsigned int |
SampleRate = 44100 | ) |
|
Start the capture.
Warning : only one capture can happen at the same time
- Parameters
-
| SampleRate | : Sound frequency (the more samples, the higher the quality) (44100 by default = CD quality) |
| void sf::SoundRecorder::Stop |
( |
| ) |
|
The documentation for this class was generated from the following file: