I am not sure if FMOD can do this in visual basic, but I want to be able to control a “global” environmental audio just like audioHQ does with the sound blaster live card. I have been coding an application that uses winamp for the main mp3 player (and visuals) and want to be able to use turn on / off / select different environmental audio presets from within the program, but have not been able to successfully figure it out.
I would really appreciate any replys to this. My last post received no answers. I will stress that I am new to the whole hardware level programming but I am willing to learn.
Thank you. If you do want to see what I am working on go to http://www.mediaengine.org. That program is what the EAX control is going to be included in.
- Anonymous asked 13 years ago
Upon trying to do this, I noticed these lines in the FMOD.bas file…
‘The FSOUND_REVERB_PRESETS have not been included in VB yet so they cannot yet be used here…
Public Declare Function FSOUND_Reverb_SetEnvironment Lib “fmod.dll” Alias “_FSOUND_Reverb_SetEnvironment@16” (ByVal env As Long, ByVal vol As Single, ByVal decay As Single, ByVal damp As Single)
‘Please see the fmod.h file for more info
Public Declare Function FSOUND_Reverb_SetEnvironmentAdvanced etc..
Does this mean I am screwed, or do I have to control EAX manually?
Learning more still. I think I have it narrowed down to what I need to do. I just need to figure out how to call the API for FSOUND_Reverb_SetEnvironment. I do believe that I am doing it close to right, but I keep getting the following error…
Run Time Error ’49’
Bad DLL calling convention
I suppose its something I am doing. Please help.
Oh. Hmm. Well all I did was download the current version of the FMOD and then look at the Visual Basic module that was in the API directory. If the function isn’t in the fmod.dll file then why is it in the module?
Also, if FMOD cannot do the global environment, is there any other way of controlling it?
Please login first to submit.