Dear FMOD users,
I downloaded this kick**s system a few days ago and let me say this is just great – easy to use and simple interface, but still very elegant and poweful. Thank you for this! 😛
Here’s the scenario: A short “BIIIIIP” sound is played and then it stops. After which I need to detect that stop ASAP. (The sound is coming from outside the comp, so it is recorded).
Here I have a couple of questions:
1) The latency between recording the data and analyzing it is a major factor here. So how can I optimize this to the minimum?
As stated in the features list:
“FMOD Ex now supports super low latency recording, processing and output through a new recording engine.
Via ASIO the recording->DSP->playback latency can be as low as 1-3ms! This is great for realtime processing and playback of recorded audio.”
Great! So I tried the dpspluginviewer – example with direct input, winmm and ASIO recording without any plugins loaded. The thing is that ASIO had a bigger lag between I said something to the mic, and when it was actually played. Maybe I have some ASIO settings set badly? 😥
2) The sound is a basic beep that varies in length. What would be a good way to detect its start and end? The simple solution I thought of was to monitor the dB-levels of the channel and set some constant dBs that would define when there is sound and when there’s not. Perhaps there are more elegant ways to do this..?
Long post, sorry for my bad english and thanks for reading! 😉
- BDream asked 13 years ago
I figured out that a standard “BEEP” has some dominant frequency, so I was thinking about something following:
Set playback device
Set record driver
Create sound object
Check dominant frequency
If frequency is BIIP frequency BIIP is on Else
BIIP is off
Stupid way of doing this? What do you think? And what is a good trade off for this kind of program for the FFT calculations? I’m currently using 512 as the spectrum size and have no idea if I should go higher or lower and how much does it eat the cpu more if I go higher. And I have no idea if I should use a better interpolation or not.. I’m using the FMOD_DSP_FFT_WINDOW_TRIANGLE.
Oh and I’m using the default sound capturing drivers and playback devices and not ASIO, so how much I’m losing there?
Please login first to submit.