For some reason AGS games turn the MIDI Synth control on Windows' Volume Control all the way down at game start.
I've got two questions:
1.) Why do they do that?
and
2.) Can I prevent this from within the script and make it stay on at least 50%?
I've looked through the multimedia functions but I've found nothing for controlling, I don't know what you'd call it, external volume control.
\\--EDIT--\\
Sorry, I forgot to mention that it doesn't do this every time, it only seems to be the first time I run an AGS game.
Huh...so that's why I didn't get any sound during my run through of Secret of Monkey Island right now... >:(
Haha...I encountered this when I was making my IWWHI^2TMI5 game but it only happened once like you said. But I look at it now and...yup...back down again to 0. Why?
Hmm, I just tried to test this but Vista doesn't seem to have a separate MIDI volume control any more.
If you change the MIDI driver in Winsetup, does this still happen?
Sorry it took so long to respond:
Chris, I can't seem to make it happen again. I've shut down the computer and restarted a couple times but the MIDI Synth is still where I put it after trying to run any game, whether it be a completed game or through the editor. Strange.
Before I tried anything this morning, the control was all the way down, which was very odd since I hadn't run any game yet, although I did have the AGS editor open.
The procedure I tried was:
First I just restarted after setting the control where I wanted it. I opened up Volume Control and started AGS. No change. So I started a finished AGS game and no change. I then started my game in through the AGS Editor and the same thing, nothing changed.
So I thought, maybe the computer has to be shut down, since after I turned it on this morning, the midi control was down.
So I shut down and waited about 5 minutes and turned it back on. I went through the same precedure from above and got the same results.
It could possibly be a random thing, could it?
I know Windows Media Player likes to turn the MIDI slider down to zero whenever you use it (play a midi?) - could that have been the case?
Hmm, maybe that's what's happening. Maybe I'm just playing midis before this happens. It IS rare that I play a midi file. Last night I listened to one and hadn't used AGS after that and shut down. So that's most likely why it was all the way down this morning.