Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: How do i: Play several looped sounds together  (Read 2654 times)

0 Members and 1 Guest are viewing this topic.

Art

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 54
    • View Profile
How do i: Play several looped sounds together
« on: May 18, 2005, 04:13:27 PM »

When i call Game.PlaySound, it terminates playing of previus sound.
I need to play several ogg files together in depense of state of the game ???
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: How do i: Play several looped sounds together
« Reply #1 on: May 18, 2005, 04:35:53 PM »

Do you mean playing several sounds simultaneously or one after another?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Art

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 54
    • View Profile
Re: How do i: Play several looped sounds together
« Reply #2 on: May 18, 2005, 06:41:49 PM »

simultaneously
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: How do i: Play several looped sounds together
« Reply #3 on: May 18, 2005, 06:52:05 PM »

Ok, in that case simply generate several entities and let them play the sounds:

var DummyEnt1 = Scene.CreateEntity();
var DummyEnt2 = Scene.CreateEntity();

DummyEnt1.PlaySound("sound1.ogg");
DummyEnt2.PlaySound("sound2.ogg");

If the number of sounds is fixed you can also pre-make sound entities directly in SceneEdit.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Art

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 54
    • View Profile
Re: How do i: Play several looped sounds together
« Reply #4 on: May 19, 2005, 08:59:52 AM »

Thank you Mnemonic :)
It should help me
Logged
 

Page created in 0.03 seconds with 19 queries.