Get the sound buffer containing the captured audio data.
Process a new chunk of recorded samples.
Start capturing audio data.
Stop capturing audio data.
Start the capture. The sampleRate parameter defines the number of audio samples captured per second. The higher, the better the quality (for example, 44100 samples/sec is CD quality). This function uses its own thread so that it doesn't block the rest of the program while the capture runs. Please note that only one capture can happen at the same time.
Stop the capture.
Get the sample rate in samples per second.
Check if the system supports audio capture.
Start capturing audio data.
Process a new chunk of recorded samples.
Stop capturing audio data.
Specialized SoundRecorder which stores the captured audio data into a sound buffer.
SoundBufferRecorder allows to access a recorded sound through a SoundBuffer, so that it can be played, saved to a file, etc.
It has the same simple interface as its base class (start(), stop()) and adds a function to retrieve the recorded sound buffer (getBuffer()).
As usual, don't forget to call the isAvailable() function before using this class (see SoundRecorder for more details about this).