#include <SoundBufferRecorder.hpp>
Inheritance diagram for sf::SoundBufferRecorder:
Public Types | |
typedef bool(*) | FuncType (const Int16 *, std::size_t, void *) |
Public Member Functions | |
const SoundBuffer & | GetBuffer () |
Get the sound buffer containing the captured audio data. | |
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 42 of file SoundBufferRecorder.hpp.
const SoundBuffer& sf::SoundBufferRecorder::GetBuffer | ( | ) |
Get the sound buffer containing the captured audio data.
void sf::SoundRecorder::Start | ( | unsigned int | SampleRate = 44100 |
) | [inherited] |
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 | ( | ) | [inherited] |
Stop the capture.
unsigned int sf::SoundRecorder::GetSampleRate | ( | ) | const [inherited] |
Get the sample rate.
static bool sf::SoundRecorder::CanCapture | ( | ) | [static, inherited] |
Tell if the system supports sound capture.
If not, this class won't be usable