08-09-2013, 04:01 AM
Been taking a little look at my MciSendString audio system. Guess what I found? I found the Win32 MciSendString command won't change the volume for MIDI files. Arrrgh!!!! In fact, it uses a different system to control the Midi Output, so I had to make an alteration to my system to allow the designer to use the default RMXP playback system for Midi... if preferred.
Midi.png (Size: 609.3 KB / Downloads: 7)
Unfortunately, this means you either have music that allows you to make custom loops for your midi music and allow for multiple channels, or use the default system for midi music which lets you control its volume.
...... Meanwhile, I still had a weird issue with OGG music. It always worked fine if you didn't change the start of your music playback (ie start playing at 0 milliseconds). But if you wanted to start playing 4 or so seconds in, the sucker didn't play exactly right.
So I had to make an offset value which the game designer (you) can edit. It varies from ogg music file to ogg music file, and I don't know why it is different between each. BUT... it works.
Ogg.png (Size: 609.66 KB / Downloads: 6)
Midi.png (Size: 609.3 KB / Downloads: 7)
Unfortunately, this means you either have music that allows you to make custom loops for your midi music and allow for multiple channels, or use the default system for midi music which lets you control its volume.
...... Meanwhile, I still had a weird issue with OGG music. It always worked fine if you didn't change the start of your music playback (ie start playing at 0 milliseconds). But if you wanted to start playing 4 or so seconds in, the sucker didn't play exactly right.
So I had to make an offset value which the game designer (you) can edit. It varies from ogg music file to ogg music file, and I don't know why it is different between each. BUT... it works.
Ogg.png (Size: 609.66 KB / Downloads: 6)