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: loop sound in my scene  (Read 2512 times)

0 Members and 1 Guest are viewing this topic.

dreamfighter

  • Supporter
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • View Profile
loop sound in my scene
« on: May 17, 2008, 10:12:39 PM »

i would like to looping a sound fx in my scene, how can i do? i would like to controle volume of this sound fx too

i put this in my scene_init.script
Game.PlaySound("sound\soundfx.ogg");

so it's playing my sound but after seconds it stop
how can i loop this sound?

thank you very much

Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: loop sound in my scene
« Reply #1 on: May 17, 2008, 10:17:01 PM »

Game.PlaySound("sound\soundfx.ogg", true);
Game.SetSoundVolume(50);
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

dreamfighter

  • Supporter
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • View Profile
Re: loop sound in my scene
« Reply #2 on: May 17, 2008, 10:45:52 PM »

very cool metamorphium
thank you very very much
Logged
 

Page created in 0.04 seconds with 19 queries.