Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: accessing soundrecorder-data while recording  (Read 3139 times)

0 Members and 1 Guest are viewing this topic.

SvenB

  • Newbie
  • *
  • Posts: 28
    • View Profile
    • http://www.psych.uni-halle.de/sven/
accessing soundrecorder-data while recording
« 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)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
accessing soundrecorder-data while recording
« Reply #1 on: July 19, 2011, 06:15:24 pm »
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.
Laurent Gomila - SFML developer