Game Development Community

Beta 3 bug: Missing GuiMusicPlayer (Found)

by JesseL · in Torque 3D Professional · 06/27/2009 (12:00 am) · 6 replies

•Added GuiMusicPlayer to test streaming SFX

Where did it go? Can I still get a copy?

Look in "core/scripts/gui/", you'll find the script file and gui file!

About the author

I just realized that if I wanted to create a cat that caught on fire and ran up a telephone pole and then burst into a blue waterfall. That wouldn't be to hard!


#1
06/27/2009 (2:13 am)
Look in "core/scripts/gui/", you'll find the script file and gui file. They're not exec'd -- I believe it was only meant for testing and isn't quite ready(fully functional) if I'm not mistaken.

You can exec it and call it with toggleMusicPlayer(); you'll see that it scans your project's directory and finds all .wav and .ogg files for playback with basic "music player" functionality such as play/pause/stop/seek.
#2
06/27/2009 (2:08 pm)
Anyone seen a script based Midi Player implemented?
#3
06/27/2009 (2:29 pm)
For midi to work, Torque would have to support the midi format -- which it doesn't.

I don't think it would be something that GG would pursue. The SFX layer gives you the abstraction you need so that you could be able to add midi support depending on your sound provider.

Can it be done in script? No.
#4
06/27/2009 (4:55 pm)
The whole MIDI thing is in a sad state in Windows. Microsoft pretty much refuses to support any additional API despite a large number of external devices dependent upon it.

With the death of DirectMusic/DirectSound, and XAudio2 being designed for RIFF I don't see anything on the horizon from Microsoft that will lead to anything new.

It'd be the traditional fallback to winmm.dll, which is still supported but is not a very good interface.

FMod supports it (pretty sure) but of course that's not free for commercial use.
#5
06/27/2009 (8:01 pm)

Re GuiMusicPlayer:

As Michael said, this thing was mostly meant for testing and is quite rudimentary. Nothing you want to have showing up in your game. The files are there mostly because I saw no reason not to put them in.

Maybe I should have named it differently. GuiMusicPlayer makes it sound like more than it actually is.
#6
07/08/2009 (6:49 am)
I think it is neat and it is another example of how someone would accomplish a task that you can look at to gain experience.