25#ifndef SFML_SOUNDBUFFERRECORDER_HPP
26#define SFML_SOUNDBUFFERRECORDER_HPP
31#include <SFML/Audio/Export.hpp>
32#include <SFML/Audio/SoundBuffer.hpp>
33#include <SFML/Audio/SoundRecorder.hpp>
99 std::vector<Int16> m_samples;
Specialized SoundRecorder which stores the captured audio data into a sound buffer.
const SoundBuffer & getBuffer() const
Get the sound buffer containing the captured audio data.
~SoundBufferRecorder()
destructor
virtual bool onStart()
Start capturing audio data.
virtual bool onProcessSamples(const Int16 *samples, std::size_t sampleCount)
Process a new chunk of recorded samples.
virtual void onStop()
Stop capturing audio data.
Storage for audio samples defining a sound.
Abstract base class for capturing sound data.