Skip to content

Multiple Acces to dll Functions

hans

Asked Mar 28, 2006, 10:15 AM EST1 answer
Share
LinkedInX
Hi, im working on an audio recording program. I want to trigger recording, when my signal level raises over a defined low level. Also i want to stop recording, when the signal strength lowers again under the given level. im using winmm.dll (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_status_mm.asp) recording just works fine for me, but if i want to use winmm.dll again (send another mciString command) recording stops because of the newly received command. afaik, i have to send another mciString command, to detect the actual sample level (mciSendString("status myRecord level", .. )) so finally my question: does anybody know how to get the level information without stopping recording ? Can i start a second task, or would this result in the same conflict? Or does anybody know, how to gain the level information from another dll, interface or sth? i hope you can help me, yas Stefan E.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Sending any status commands should not stop the current task of the device. Are you using mciSendString? If so, I would check the return code and see if it is an error.
    0