Is there a way to play musics using direct show over frame? I tried and i couldnt do it <img src="/center/images/graemlins/frown.gif" alt="" />


Is there a way to play musics using direct show over frame? I tried and i couldnt do it <img src="/center/images/graemlins/frown.gif" alt="" />
I guess you could do it with a sub-app. Either by playing with direct show in a main frame, displaying your other levels in the sub-app, or by having the music in an invisible sub-app.

Just select the "Global" option in the the properties of the DirectShow object and copy it to all the other frames, that should work.
Yves.


Ok. Thanks you Yves <img src="/center/images/graemlins/smile.gif" alt="" />
Can you do it with the regular sound mixer as well? I need to be able to control the volumes, and still have looping sounds over frames. I really hope this is possible!


Gum, if all else fails, there's still the MCI object:
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=18268&page=2#Po st18268
Okay, thank you.
What would be the best (most stable and resource friendly) way to go then? Making a subapp or using the MCI object? And where can I learn about MCI commands? The help file isn't very helpful.
What I need is to have several wavs (or oggs or mp3s if it works) to play and loop (without glitches!) over several frames, and be able to keep total control over channel volumes.
I have never used the MCI object or subapps, so I don't know which method will work best.
Okey. Uhm. I just realized there is an option called "play samples over frames". I think this just saved my life. I just have to change from playing file at start of frame to some condition with global values or something. A little more dynamic that way. =)
A solution that's a bit controversial, but actually works fine, is to use two separate applications. One, which is your game, the other which is the sound/music player. The game launches the other application on startup (it should run minimized), and uses the global function object to tell it to "play this song", or "play this sample", or "stop all music", "stop all sound", "exit application" etc.
The adventage is that it works with all sound and music extensions that exists.
I've just run into the most annoying bug ever. MMF crashes whenever I add a global event, whatever it is. It doesn't crash instantly, though. If I test run the application, it works just fine, proving the global events does what I expected, but when I try to save the project it just says "unable to save file" and crashes. Gah!