dMZX Forums: Sound Loops - dMZX Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Sound Loops Not Music Not SFX

#1 User is offline   T-Bone 

  • Wastelander
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,487
  • Joined: 16-August 02
  • Gender:Male
  • Location:Canada

Posted 15 December 2006 - 03:04 AM

Hey I just wanted to know what was the proper way to do a sound loop in MegaZeux. I like the fact that we can now use ogg and wavs as music thus we can have say a waterfall sound effect loop. But my issue is, what if i want to have music in my game and have a sound effect loop?

for Example:

mod "hiphop.mod"
:loop
sam 40 "rain.ogg"
wait 5
goto "loop"

I know i can easily just make a ogg with the music and the sound loop mixed in one but what if i want to have different areas of the game produce different sound loops? Using a wait command doesn't seem to be very reliable since everyone's computer speeds vary.

EDIT:
If only I could use this:

:loop
play "&rain.ogg&"
wait play
goto "loop"

Wait play only works for those ancient SFXs , would be awesome if it could also be used to sounds from a file. Hope Exo sees this :p

This post has been edited by T-bone6: 15 December 2006 - 03:23 AM

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users