How to loop a sound?

BlitzMax Forums/BlitzMax Beginners Area/How to loop a sound?

MRaven(Posted 2004) [#1]
Hi,

the "LoopSound" comand is no more, how can I loop my little ogg-tune? There isn't even a comand to check if a channel is currently playing, so I can resume the sound, when the channel has stopped. Or did I missed something?


FlameDuck(Posted 2004) [#2]
Look in the OldSkool2 demo sample. Sorry I don't have the source with me, so can't post the relevant bit. :o<


Perturbatio(Posted 2004) [#3]
I believe you set the sound to loop when loading it (second parameter to true).


ImaginaryHuman(Posted 2004) [#4]
How does one go about generating music or sounds in the oggvorbis format? Are their programs for the Mac that do this, any free ones, or are they all commercial?


BlitzSupport(Posted 2004) [#5]
Here ya go:

OS X:
http://www.vorbis.com/software.psp?pid=4

Windows:
http://www.vorbis.com/download_win.psp

Linux:
http://www.vorbis.com/software.psp?pid=1


Hardcoal(Posted 2012) [#6]
how to stop sound looping.

why there is no command for Loopsound(Sound*,False)!

how do i get the channel handle? so i can stop it or pause.

Last edited 2012


AdamStrange(Posted 2012) [#7]
it is possible to do, but you have to drill into the source code of free audio and modify the c++ code for the module i'm afraid :(