Feature Request: Disable audio system for a plugin (nevermind - not needed)

Started by modgeulator, Sun 25/04/2004 05:00:41

Previous topic - Next topic

modgeulator

Would it be possible to add a command or variable that could be used in a plugin to tell AGS not to initialize its audio engine? The reason I'm asking is because I'm trying to write a DirectMusic plugin and I need to be able to disable the built-in audio engine for it to work.
I know that I can get this system working if there were just a way to turn off the built-in audio. At the moment, sometimes on my PC the AGS audio system fails to initialize. When this happens I can get a sound/midi loaded into DirectMusic and played back correctly. The rest of the time it fails to playback (with a "DMUS_E_NO_MASTER_CLOCK" error). So I know I'm on the right track, just need to be able to turn off the built-in audio system.

A little info on DirectMusic for anyone interested. It's part of DirectX which is installed on all Windows PCs. What makes it interesting to me is DirectMusic Producer, probably the most advanced interactive audio content creation tool around. If you were at all impressed with the music in all the LucasArts games with their iMUSE engine, well you can re-create all those cool transitions and effects with this. And then some. It's also free to download from Microsoft.
You can read more about it at these sites:
http://www.musicmachines.net/faqdm.htm
http://www.iasig.org/pubs/industry/dmpmass.shtml
http://msdn.microsoft.com/library/en-us/dmusprod/htm/directmusicproducer.asp



EDIT:
DUH! I can't believe how stupid I can be sometimes. All I needed to do was run winsetup and disable sound there  ::). Anway, I've got my plugin loading DirectMusic scripts and calling routines, so it's pretty close to finished. I'm just going to put together a little demo using it, then release it all sometime in the next few days  ;D.

Pumaman

Yep, disabling it in Setup will do the trick - although it would probably be handy to have some way for the plugin to force if off anyway, in case the player tries to be smart by enabling it again in Setup.

SteveMcCrea in Austin

Sounds like a good system!
Did I say how happy I was that you volunteered to do some music for Maya con Dios? Because I am...
It's like the olden days on C64 etc when musicians programmed their music!

modgeulator

Thanks Steve. I guess it is sorta like the old C64 days. I just think putting some code behind the music can be incredibly effective - and I've been becoming increasingly obsessed with the whole interactive audio field lately.

Pumaman, I only need to be able to disable the "Default DirectSound Device" digital sound output. The others (Wave Out and the MIDI devices) don't cause any problems and could even be used alongside the plugin (I'm not sure if that would be a good idea, though.)

EDIT: Pumaman - what I think would work best is an option that can be added into acsetup.cfg by hand, something like "DisableDirectSound=1". If you add that line it should stop winsetup.exe from displaying "Default DirectSound Device" as an option.
Thanks.

SMF spam blocked by CleanTalk