Problem with Music Buttons
Build R244
I'm trying to make my game have multiple musics you can change with a button.
So anyway, I have this event:
User clicks with left button on "Music Button"
stop any sample
stop any music
Play and loop music "Game Music" 0 times. (0 being infinite loop)
But the music dosn't play. It's one of the default musics from the Fusion 2 Library (Under the MIDI folder) so why isn't it working?
Re: Problem with Music Buttons
I think it's because you have it set to 0. Try setting it to -1.
Re: Problem with Music Buttons
but 0 is an infinite loop not -1
Re: Problem with Music Buttons
Have you tested with another sound or run the music only once? Does it work then? Is a second sound overriding the first? Is the event in a group? Is the group opened/closed properly?
I tested a button and infinite sound loop as you described above and it works here. So I think some other coding must be interfering with you music.
Keep trying you'll get it to work I'm sure. If not submit a sample app and someone will help you out. [smile]
Re: Problem with Music Buttons
Just tested and it worked for me. You'll have to post an example.
Can you hear MIDIs if played through different events? In Windows Media Player? In different applications?
Re: Problem with Music Buttons
Yes I can hears the MIDIs in Windows Media Player. How would I be posting an example?
Re: Problem with Music Buttons
There's a section of the forums called MMF2 file archive. Upload it there.
Re: Problem with Music Buttons
I had a problem like this before where no midis will play in MMF2. I have no idea how this starts and I have never found a solution to make it stop, it just eventually does.
But while this problem is happening I can get the music in MMF2 to work if a MIDI is playing in Windows Media Player at the same time that the application is running. But this gets kind of annoying because you're listening to two midis at once (the one from the application and the one from media player). So what I did was just created a blank midi file with nothing in it and play that in media player while running application.
Re: Problem with Music Buttons
You may also want to try pressing Ctrl+M in-game enable/disable music. Versions of MMF2 prior to 244 had problems thanks to Windows XP SP2 security measures, so ensure you are up to date. If you are using external MIDIs then ensure you select the MIDI filter under application properties->sound filters.
Re: Problem with Music Buttons
I had a problem like this recently and found that the MIDI sequencer volume, which you can access from
Start=>Programs=>Accessories=>Entertainment=>Volum e Control
had been turned all the way down. This was due to an other program I was using when I was converting MIDI's to WAV. Check that and see if this has happened to you too. Even though the MIDI's weren't playing in MMF 2, they were in Media Player.
Re: Problem with Music Buttons
Other kinds of music still work in the same event (Except this music was a .ogg file being played as a sample).
Re: Problem with Music Buttons
Check in the application properties - sound filter - edit, if the ogg file is ticked.
I got this advice when my ogg file didn't play and that solved it.