From 3acd9620eb6e14258d13ecf5e64bcf03e7aa591d Mon Sep 17 00:00:00 2001 From: kimci86 Date: Sat, 1 Oct 2022 16:13:16 +0200 Subject: [PATCH] Fix SoundRecorder example code --- include/SFML/Audio/SoundRecorder.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/SFML/Audio/SoundRecorder.hpp b/include/SFML/Audio/SoundRecorder.hpp index d1e3b0512..3471e93f1 100644 --- a/include/SFML/Audio/SoundRecorder.hpp +++ b/include/SFML/Audio/SoundRecorder.hpp @@ -359,12 +359,14 @@ private: /// \code /// class CustomRecorder : public sf::SoundRecorder /// { +/// public: /// ~CustomRecorder() /// { /// // Make sure to stop the recording thread /// stop(); /// } /// +/// private: /// virtual bool onStart() // optional /// { /// // Initialize whatever has to be done before the capture starts @@ -374,7 +376,7 @@ private: /// return true; /// } /// -/// virtual bool onProcessSamples(const Int16* samples, std::size_t sampleCount) +/// virtual bool onProcessSamples(const sf::Int16* samples, std::size_t sampleCount) /// { /// // Do something with the new chunk of samples (store them, send them, ...) /// ... @@ -388,7 +390,7 @@ private: /// // Clean up whatever has to be done after the capture ends /// ... /// } -/// } +/// }; /// /// // Usage /// if (CustomRecorder::isAvailable())