31
Technical forum / Re: Game.PlayMusicChannel behaviour
« on: March 04, 2007, 09:27:04 PM »
Hi,
I changed the wme_demo project a bit to show you what I mean. First I changed the global music volume to 60 in game.script. I added a second music track that is played in the street scene. On every scene change the volumes of both global music volume and music channel volume of channel 0 are shown using Game.MSG(). Use the space bar to stop the music.
As you will see the demo will start in the room scene with the narco track playing at 100%, though the global music volume is 60%. You leave the room and my added track will crossfade in at 60% (like it should be). If you go back in then, narcos track will be played at 60%. Everything works fine then until you stop the music with space bar. If you change the scene then, the new track should be played at 60% but it will play at 100%, because it's a simple Game.PlayMusicChannel(0,"blah") instead of a crossfade.
To add it up: Crossfading works with the global music volume, while a simple Game.PlayMusicChannel(0,"blah") will always play at 100%.
Here's the link: http://mac-bs.de/temp/wme_demo.rar
Mac
I changed the wme_demo project a bit to show you what I mean. First I changed the global music volume to 60 in game.script. I added a second music track that is played in the street scene. On every scene change the volumes of both global music volume and music channel volume of channel 0 are shown using Game.MSG(). Use the space bar to stop the music.
As you will see the demo will start in the room scene with the narco track playing at 100%, though the global music volume is 60%. You leave the room and my added track will crossfade in at 60% (like it should be). If you go back in then, narcos track will be played at 60%. Everything works fine then until you stop the music with space bar. If you change the scene then, the new track should be played at 60% but it will play at 100%, because it's a simple Game.PlayMusicChannel(0,"blah") instead of a crossfade.
To add it up: Crossfading works with the global music volume, while a simple Game.PlayMusicChannel(0,"blah") will always play at 100%.
Here's the link: http://mac-bs.de/temp/wme_demo.rar
Mac