Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: The Man on May 21, 2013, 11:49:02 AM
-
I'll explain my problem briefly. I have 3 musics for the first scenes of my game. These 3 musics are supposed to play simultaneously in the following way:
1- GDTheme: this is the main theme, with its volume always set to 100;
2- oldpiano: when entering a certain scene, I set this music's volume to 100. When leaving from the scene, I set it to 0;
3- Guitar: when entering a certain scene, I set this music's volume to 100. When leaving from the scene, I set it to 0;
In order to do this, the tracks must be completely synchronized, but I noticed they aren't... while if I test them on other programs, they do. In the first scene I have this code which starts all the tracks:
Game.PlayMusicChannel(2, "audio\GDguitar.ogg", true);
Game.PlayMusicChannel(3, "audio\oldpiano.ogg", true);
Game.PlayMusicChannel(4, "audio\GreendartTheme.ogg", true);
Game.SetMusicChannelVolume(2, 0);
Game.SetMusicChannelVolume(3, 0);
Game.SetMusicChannelVolume(4, 95);
Is there something I'm doing wrong, or is it a bug?
-
maybe I am being stupid and have missed something, would it not be safer to mix the music outside of WME and play the appropriate mix accordingly - there is always the possiblity of system lags caused by external events which I would have thought make the "real-time " mixing of tracks risky
-
The idea is that every scene should ADD SOMETHING to the music. When you enter to a scene there's a street guitarist who's playing a song which should play ONLY in that scene, for example. The problem is that if the guitarist music is not synchronized it will sound bad.
-
I'm afraid WME cannot guarantee synchronized music channels (for the reasons stated by eborr). There is a plugin (http://forum.dead-code.org/index.php?topic=4768) by Spellbreaker which tries to rectify the problem.
-
Allright... I just wanted to be sure I wasn't doing something wrong!
Thanks to both of you for the answers!
-
Yes the Plugin works fine, if you have any question, you can contact me.