Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: PlayMusicChannel looping problems  (Read 7616 times)

0 Members and 1 Guest are viewing this topic.

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
PlayMusicChannel looping problems
« 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.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: PlayMusicChannel looping problems
« Reply #1 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?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
Re: PlayMusicChannel looping problems
« Reply #2 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.?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: PlayMusicChannel looping problems
« Reply #3 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.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
Re: PlayMusicChannel looping problems
« Reply #4 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.
Logged

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
Re: PlayMusicChannel looping problems
« Reply #5 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.

?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: PlayMusicChannel looping problems
« Reply #6 on: December 13, 2007, 03:22:10 PM »

I'm not sure yet, I'll need to test it.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.022 seconds with 23 queries.