Warning
This page refers to an old version of SFML. Click here to switch to the latest version.
Warning
This page refers to an old version of SFML. Click here to switch to the latest version.
SoundRecorder is an interface for capturing sound data, it is meant to be used as a base class. More...
#include <SFML/Audio/SoundRecorder.hpp>
Public Member Functions | |
| 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 Public Member Functions | |
| static bool | CanCapture () |
| Tell if the system supports sound capture. | |
Protected Member Functions | |
| SoundRecorder () | |
| Default constructor. | |
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 |
Virtual destructor.
|
protected |
Default constructor.
|
static |
Tell if the system supports sound capture.
If not, this class won't be usable
| unsigned int sf::SoundRecorder::GetSampleRate | ( | ) | const |
Get the sample rate.
| void sf::SoundRecorder::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) |
| void sf::SoundRecorder::Stop | ( | ) |
Stop the capture.