News for hackers. Stuff that matters.
Re:Show HN: Play Ogg Vorbis files containing loop metadata, ... by jkarneges on Monday October 22, 2018 @10:26PM (#18280297)
Wrote this for fun while learning Rust. It's intended for playing video game music, where the intro part of a song is played once followed by a looped section that repeats forever.
Re:Show HN: Play Ogg Vorbis files containing loop metadata, ... by tristanac on Tuesday October 23, 2018 @10:04AM (#18283451)
Just a question. Can an .ogg audio track be looped without a gap (silence)?
Re:Show HN: Play Ogg Vorbis files containing loop metadata, ... by jkarneges on Tuesday October 23, 2018 @11:37AM (#18284285)
You mean without specifying looping positions in the metadata? I would assume so, as long the length of an ogg doesn't require padding and you have a capable player.

One issue I noticed with the Lewton library is it wouldn't let me seek to granule 0 nor the first granule with audio samples. This means looping an entire ogg may not be possible using a single instance of the decoder, and if you set LOOPSTART=0 then playloop will crash. But, this could almost certainly be worked around by making a new decoder and reopening the ogg.