Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: I want to make the smooth fade of one music in other  (Read 2159 times)

0 Members and 1 Guest are viewing this topic.

Lion

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 101
    • View Profile
I want to make the smooth fade of one music in other
« on: June 14, 2007, 08:55:47 AM »

I want to make the smooth fade of one music in other using a code:

Game.PlayMusicChannel(0, "music\FirstChannel.ogg");
...
Game.PlayMusicChannel(1, "music\SecondChannel.ogg");
Game.MusicCrossfade(0, 1, 3000);

But when I do Game.PlayMusicChannel(1, "music\SecondChannel.ogg"), at first part of second is heard on the complete volume of "music\SecondChannel.ogg". Then there is fading on Game.MusicCrossfade(0, 1, 3000); That it is possible with it to do?

Is it possible smoothly to turn off music Game.PlayMusicChannel()?

What functions play voice files by parts(stream)? Game.PlayMusicChannel() does play a stream?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: I want to make the smooth fade of one music in other
« Reply #1 on: June 14, 2007, 06:04:09 PM »

I want to make the smooth fade of one music in other using a code:

Game.PlayMusicChannel(0, "music\FirstChannel.ogg");
...
Game.PlayMusicChannel(1, "music\SecondChannel.ogg");
Game.MusicCrossfade(0, 1, 3000);

But when I do Game.PlayMusicChannel(1, "music\SecondChannel.ogg"), at first part of second is heard on the complete volume of "music\SecondChannel.ogg". Then there is fading on Game.MusicCrossfade(0, 1, 3000); That it is possible with it to do?
What's the "..." supposed to mean? Are you calling any code between the two PlayMusic calls?


Is it possible smoothly to turn off music Game.PlayMusicChannel()?
Make a loop and lower the volume of the channel bit by bit using Game.SetMusicChannelVolume().


What functions play voice files by parts(stream)? Game.PlayMusicChannel() does play a stream?
I don't understand the question.
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.051 seconds with 20 queries.