0
0

Hi all,

This is a point I’m stumbling over again and again …

I’m recording the voice of a computer operator, and telling FMod to stop recording when a certain VU level is maintained for a period of time. I have this bit working no worries. 😀

What is bugging me is that the playback part to get the VU level stuff to work requires that the voice input goes straight to the speaker output. With the slight delay in the C++ sample code that I converted, there appears to be an echo played back to the user. :(

My questions are:
– is it possible to mute the speakers programatically (even outside of FMod)?
– has anyone tried this technique of playing back while recording to get/show the VU levels?
– is there another way to achieve what I need to do?

Adam “Divot” Finster

  • You must to post comments
0
0

if you want no output at all you can set the output using FSOUND_SetOutput(FSOUND_OUTPUT_NOSOUND). you can mute the speakers using the winmm api

  • You must to post comments
0
0

Hi birty,

Thanks for the reply.

Will either of those settings effect the playback in terms of generating the VU levels?

Adam

  • You must to post comments
0
0

muting the windows mixer wont affect it i imagine, i dont know about settting the output to no_sound though

  • You must to post comments
0
0

birty,

do you have the code for the winmm api?

Thanks,
Adam

  • You must to post comments
0
0

not in VB, i use the following wrapper for delphi: http://www.fi.muni.cz/~xkovalc/index.ph … ion=delphi
see http://msdn.microsoft.com/library/defau … a_apis.asp for the full api, im sure you can find a good VB wrapper somewhere

  • You must to post comments
0
0

Hi.
One year ago I made a recording program in VB using Fmod, and had to face the same problem of Vu meter. To disable the output you juste have to desactivate fmod’s last processing stage “clip and copy unit” with two function : FSOUND_DSP_GetClipAndCopyUnit to get the unit handle and then FSOUND_DSP_SetActive(unithandle,0) to disable it.
Then displaying the Vu : I can’t get the GetCurrentsLevels function working accurancily, even with AccuratesVuLevels as init flags, so I started working out an external function, but I had no time to complete it. If you manage to get it working fine please tell me !
Good luck…

the source of my program : [url=http://www.vbfrance.com/code.aspx?id=22988:3m69aqzt]here[/url:3m69aqzt]

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.