SFML community forums
Help => Audio => Topic started by: SvenB on July 19, 2011, 05:56:52 pm
-
Hi,
we want to implement a "voicekey" in software, i.e. a sound activated relay.
Therefore, we need to 'listen' online to the sound data while recording.
Is it possible to read the data recorded with the sound recorder while
recording? Aim: measuring the time from start recording until a specific
sound pressure level is exeeded.
Thanks in advance - Sven
BTW: we are still with sfml 1.4 (never change a running system in
experimental psychology)
-
It's quite simple, you just have to inherit from sf::SoundRecorder and do your real-time processing in the OnProcessSamples virtual function, that receives the audio samples as they are recorded.