Wintermute Engine Forum

Wintermute Engine => Bug reports => Topic started by: redfox on November 26, 2007, 09:59:02 PM

Title: PlayMusicChannel looping problems
Post by: redfox on November 26, 2007, 09:59:02 PM
Since the update of Wintermute 1.8.0, the PlayMusicChannel looping 'false' does not seem to work . Music tracks loop, no matter what I have tried to input.
Title: Re: PlayMusicChannel looping problems
Post by: Mnemonic on November 27, 2007, 06:18:59 PM
It seems to work ok for me. What are the exact parameters you're invoking PlayMusicChannel() with?
Title: Re: PlayMusicChannel looping problems
Post by: redfox on November 29, 2007, 09:19:11 PM
Hello,

I was using code such as this if I wanted to not loop a music track which I had corssfaded from another. (i'm also not changing channels at the end of the fade, as you can see.)

Code: [Select]
Game.PlayMusicChannel(1, "music\tracks.ogg", false);
Game.MusicCrossfade(0, 1, 1500, false);

This used to work, but now my music continues to loop, except it does this after a few seconds of silence. This now happens throughout game.?
Title: Re: PlayMusicChannel looping problems
Post by: Mnemonic on December 01, 2007, 10:10:06 AM
I'm still not able to replicate the issue. The sound doesn't loop even if I invoke it the way you posted above. If you could isolate the problem e.g. in WME demo, it would be helpful.
Title: Re: PlayMusicChannel looping problems
Post by: redfox on December 05, 2007, 04:08:22 PM
Well, I use the exact code above to play music once, and I cross fade a previously looping music track out. Could the fact that the previous music track was being repeated and the new one not, be the cause? They are on different channels.

If I change scenes after such a code is used, or I just stay in the same scene, the music restarts even though it's mot meant to. There is nothing else going on at the time, just actor's GoTo, the usual main game scripts, sometime a particle effect is running.
Title: Re: PlayMusicChannel looping problems
Post by: redfox on December 13, 2007, 02:55:56 PM
Could the fact that the previous music track was being repeated and the new one not, be the cause? They are on different channels, but they are cross fade?

The same result occurs on several different systems, so I don't it's the hardware.

?
Title: Re: PlayMusicChannel looping problems
Post by: Mnemonic on December 13, 2007, 03:22:10 PM
I'm not sure yet, I'll need to test it.