How do I loop a sound, in this case a siren sound, so that there are no gaps. I tried just checking if the sound was still playing, and if not playing it again, but that leaves a gap sometimes.
Loop a sound nicely
BlitzMax Forums/BlitzMax Beginners Area/Loop a sound nicely LoadSound with the loop flag set? (I haven't tried it but I'd assume it works ok).
Ive found when using an OGG formatted sound, and loading it with the loop flag set to TRUE it works fine. You need an example?
Incbin "Media\Audio\mysound.ogg" Global filmloop =LoadSound(incbin::Media\Audio\filmloop.ogg",True) Global channel=PlaySound(filmloop) SetChannelRate channel,.85 ' For speed
Side note : if you have a wav or ogg file with silence at the beginning or end (ie you tryed to convert an mp3), there isn't much you can do about that ;]
Except of course to load it up into a sound editor and remove the silence.
Except of course to load it up into a sound editor and remove the silence.
thanks guys
all set
all set