We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4849

Summary: [PATCH] Expand OGG looping support
Product: SDL_mixer Reporter: Michael Day <mikeguy42>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.4   
Hardware: x86   
OS: Other   
Attachments: Patch file for music_ogg.c to expand looping support

Description Michael Day 2019-10-30 03:19:54 UTC
Created attachment 4025 [details]
Patch file for music_ogg.c to expand looping support

Attached is a patch for music_ogg.c which offers two improvements to the built-in OGG looping:

1. Valid tag/comment key names currently take the form of LOOPxxx. Add support for LOOP_xxx and LOOP-xxx as well.
2. Add support for loop points specified by time strings of the form HH:MM:SS.ss.

The impetus for this change is to help improve music looping for Doom source ports which expect users to use music files with tags based on the tag standard established by ZDoom. (See https://zdoom.org/wiki/Audio_loop)
Comment 1 Sam Lantinga 2019-11-01 17:38:22 UTC
This patch is in, thanks!
https://hg.libsdl.org/SDL_mixer/rev/493a943d944a