Specialized SoundRecorder which saves the captured audio data into a sound buffer. More...
#include <SoundBufferRecorder.hpp>
Public Member Functions | |
const SoundBuffer & | GetBuffer () const |
Get the sound buffer containing the captured audio data. More... | |
void | Start (unsigned int SampleRate=44100) |
Start the capture. More... | |
void | Stop () |
Stop the capture. More... | |
unsigned int | GetSampleRate () const |
Get the sample rate. More... | |
Static Public Member Functions | |
static bool | CanCapture () |
Tell if the system supports sound capture. More... | |
Specialized SoundRecorder which saves the captured audio data into a sound buffer.
Definition at line 42 of file SoundBufferRecorder.hpp.
|
staticinherited |
Tell if the system supports sound capture.
If not, this class won't be usable
If not, this class won't be usable
Definition at line 136 of file SoundRecorder.cpp.
const SoundBuffer & sf::SoundBufferRecorder::GetBuffer | ( | ) | const |
Get the sound buffer containing the captured audio data.
Definition at line 70 of file SoundBufferRecorder.cpp.
|
inherited |
Get the sample rate.
Definition at line 126 of file SoundRecorder.cpp.
|
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) |
Warning : only one capture can happen at the same time
Definition at line 69 of file SoundRecorder.cpp.
|
inherited |
Stop the capture.
Definition at line 115 of file SoundRecorder.cpp.