#include <SoundRecorder.hpp>
Inheritance diagram for sf::SoundRecorder:

Public Types | |
| typedef bool(*) | FuncType (const Int16 *, std::size_t, void *) |
Public Member Functions | |
| SoundRecorder (FuncType Callback, void *UserData=NULL) | |
| Construct the sound recorder with a callback function for processing captured samples. | |
| 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. | |
Definition at line 41 of file SoundRecorder.hpp.
| sf::SoundRecorder::SoundRecorder | ( | FuncType | Callback, | |
| void * | UserData = NULL | |||
| ) |
Construct the sound recorder with a callback function for processing captured samples.
| Callback | : Callback for processing captured samples | |
| UserData | : Data to pass to the callback function (NULL by default) |
| virtual sf::SoundRecorder::~SoundRecorder | ( | ) | [virtual] |
Virtual destructor.
| sf::SoundRecorder::SoundRecorder | ( | ) | [protected] |
Default constructor.
| 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.
| unsigned int sf::SoundRecorder::GetSampleRate | ( | ) | const |
Get the sample rate.
| static bool sf::SoundRecorder::CanCapture | ( | ) | [static] |
Tell if the system supports sound capture.
If not, this class won't be usable