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: Music and Sound Questions  (Read 3697 times)

0 Members and 1 Guest are viewing this topic.

greg

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
    • View Profile
Music and Sound Questions
« 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
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Music and Sound Questions
« Reply #1 on: August 21, 2006, 09:40:14 PM »

1. According to the manual, there are 5 music channels.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Music and Sound Questions
« Reply #2 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? ;)
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Mnemonic

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

Stucki

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Posts: 325
  • I'm a llama!
    • View Profile
    • Schach-Welten
Re: Music and Sound Questions
« Reply #4 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

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Music and Sound Questions
« Reply #5 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.

Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Stucki

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Posts: 325
  • I'm a llama!
    • View Profile
    • Schach-Welten
Re: Music and Sound Questions
« Reply #6 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
 

Page created in 0.051 seconds with 20 queries.