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