How to loop a sound?

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

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?

Look in the OldSkool2 demo sample. Sorry I don't have the source with me, so can't post the relevant bit. :o<

I believe you set the sound to loop when loading it (second parameter to true).

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?

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