25 #ifndef SFML_SOUNDRECORDER_HPP
26 #define SFML_SOUNDRECORDER_HPP
31 #include <SFML/Audio/Export.hpp>
32 #include <SFML/System/Thread.hpp>
67 void start(
unsigned int sampleRate = 44100);
87 unsigned int getSampleRate()
const;
100 static bool isAvailable();
123 virtual bool onStart();
139 virtual bool onProcessSamples(
const Int16* samples, std::size_t sampleCount) = 0;
150 virtual void onStop();
171 void processCapturedSamples();
185 std::vector<Int16> m_samples;
186 unsigned int m_sampleRate;
193 #endif // SFML_SOUNDRECORDER_HPP