Author Topic: feature request: OGG looping  (Read 1146 times)

GregoryMcGregerson

  • Newbie
  • *
  • Posts: 18
  • Accuracy Focused Individual
    • View Profile
feature request: OGG looping
« on: January 25, 2015, 11:57:39 am »
I think it would be great if OGG files could loop after playing the intro of a song using the same method as RPG Maker in which metadata tags are used to mark PCM sample points for beginning and ending of loops. Here's an explanation on how this works when creating OGG files for RPG Maker. http://forums.rpgmakerweb.com/index.php?/topic/10987-make-looping-bgm-part-1-ogg-vorbis/
ZDoom also has this feature which is documented here with their source code. http://zdoom.org/Changelog/2424/files

Here's a loopable OGG with proper metadata tags. The engine would need to know how to read the metadata and start the loop at the correct PCM sample point when it hits the loop end tag.
BGM_DUNGEON_CASTLE.ogg

"LOOP_START" & "LOOP_END" would be the preferred tag names for this feature as seen in the attached image.
« Last Edit: January 27, 2015, 09:43:04 am by GGuy »