Project

General

Profile

Feature #2391

Updated by skyjake almost 5 years ago

* Use "stb_vorbis":https://github.com/nothings/stb/blob/master/stb_vorbis.c "libvorbis":https://xiph.org/vorbis/ to decode an Ogg Vorbis music file.
* Parse the comments to find out if there are @LOOP_START@ and @LOOP_END@ markers.
* Play back the decoded samples by streaming them via SDL_mixer's callbacks, in a background thread.
* Note the loop points and change playback position accordingly.

Back