So i use files for everything in my games, like the tileset, animations music, is all retrieved from an external source.. So how come when i try to to play a midi file from a file its not working now, when i have blatently done this before.
um the expression is somthing like:
appdir$+"\Music\"+"songname.mid"
any ideas why it isnt playing, i have triple check all the names of the folders and files are correct.
Oh, but it works if i use the MMF function "play midi", but i want to get it from a file, so why isnt it working???
any ideas?
Thanks for reply, i tried it, but no luck. Im really confused, ive never had this sort of problem before, doesnt seem to make sence. Im sure theres some explanation though...
try eliminating the music folder - temporarily. Just use appdrive$+appdir$+songname.mid, build an exe, move the midi file into the same folder as the exe, then see if that helps.
That will at least eliminate one possibile problem.
If you run into further trouble, try to output it as a string, then you'll be able to figure out exactly what's up.
/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/
That Really Hot Chick
now on the Xbox Live Marketplace!
Probably removing that extra slash did the trick, but if it didn't, I've got some old TGF code for the MCI object which plays midi files.
You could send the following command: "open %drive%%dir%midifile.mid alias tune"
then send: "play tune" or "stop tune"
and don't forget to close the tune by sending: "close tune"
A cool feature from the MCI object is that it can keep playing the same midi file between multiple frames, without starting over again