Audio wont loop, audio freezes at end of stream (.ogg)
Thread #606237. Printed from Allegro.cc
I have some audio that is loaded from an .ogg file and played using loop mode. Here is my code that loads the audio and begins looping it:
It plays fine, but when it gets to the end of the audio it should loop back to the beginning. Instead it freezes and keeps repeating a small fragment of the audio (eg. a broken record player sound, or the sound you hear when a CD player freezes).
Does anyone know why it won't loop? I've also tried playing with the buffer count and samples on the al_load_audio_stream_f, but that didn't seem to change anything.