Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: greg on August 21, 2006, 06:41:54 AM

Title: Music and Sound Questions
Post by: greg on August 21, 2006, 06:41:54 AM
Hi All,

I'm a newcomer to the Wintermute Engine, and I have a couple questions about its music and sound functionalities:

1. According to the manual, there are 5 music channels.  Are all five of these channels dedicated solely to music and not used by any PlaySound commands?  (Also, by default, does PlayMusic try to use Channel 0?)

2. I know there's not a built-in function for this, but could you suggest a way to filter an audio file within WME as to change the pitch or speed of the playback?

Thanks so much for your help!

Greg
Title: Re: Music and Sound Questions
Post by: Mnemonic on August 21, 2006, 09:40:14 PM
1. According to the manual, there are 5 music channels.
Title: Re: Music and Sound Questions
Post by: metamorphium on August 21, 2006, 09:42:31 PM
just out of the curiosity, why would one want to speed up the playback, when it sounds so silly in audio files? ;)
Title: Re: Music and Sound Questions
Post by: Mnemonic on August 21, 2006, 09:45:07 PM
just out of the curiosity, why would one want to speed up the playback, when it sounds so silly in audio files? ;)
Remember those helium-filled baloons in Curse of Monkey Island? ;)
Title: Re: Music and Sound Questions
Post by: Stucki on August 24, 2006, 01:17:51 PM
can i adresse the Game.PlaySound to a channel like the Game.PlayMusic??
it is not documented this way.

but how can i change the volume of a specific sound while all others volume is staying constant ??

Greets
stucki
Title: Re: Music and Sound Questions
Post by: metamorphium on August 24, 2006, 01:55:26 PM
It's even more nice than that. You can attach the sound to any entity you have, so for example completely dynamic entity would look like:

var entity = Scene.CreateEntity();
entity.PlaySound("some_sound.ogg");
entity.SetSoundVolume(50);

this way you can attach your sounds to anything on scene without thinking about channels.

Title: Re: Music and Sound Questions
Post by: Stucki on August 24, 2006, 02:04:53 PM
thanks very much. helped me alot !

and you are right. thats even better !!!!!

 O0 ::rock O0
stucki