Sonic CD 2011 .ogg loops by Kurausukun at 1:44 AM EDT on April 19, 2014
In the 2011 re-release of Sonic CD (and in the 2013 re-releases of Sonic 1 and Sonic 2), the music is stored as .ogg files, yet it loops ingame. I'm not even sure if .ogg files CAN loop, or if the loop points are in another file somewhere; I've searched through the data and found absolutely nothing. I am going to post a rip of the game's data here in hopes that some kind soul who is much smarter than I will find where the loop data is: http://www.mediafire.com/download/hnucy9fqb2ur73k/Data.zip
Just a guess, but if loop points are not on the ogg files themselves, then there is probably an extra file somewhere specifying the loop points that the game also uses(PC Bloodrayne 2 is an example, but that uses mp3), or the loop points are somewhere in the games code.
Well, maybe is not exactly what you want, but here are all Sonic CD official loop poins... http://forums.sonicretro.org/index.php?showtopic=26302&view=findpost&p=652140
Or you can ask Taxman how the loops are done, as he is the man behind the remakes.
Thanks for the info, I'll see if I can't find the place those values are stored now that I know them--If I can, then I can use this for Sonic 1/2 2013. Also I don't have a Sonic Retro account, so I'm not sure how I would contact Taxman, or even if I did if he would actually tell me, but thank you.
Good luck in your adventure! BTW, if you have the Sonic 1/2 2013 .ogg files, could you please upload them? I'd love to hear the new soundtracks. Thank you.
Update: I have found where the loop points are in all of the games. In the case of Sonic CD 2011, all of the loops are located in Scripts/Bytecode/PS003.bin, which controls the sound test. It's hard to say exactly where the points are in there because the text is all jumbled due to byte order bullshit, but they are all in there, and you can generally tell what the name of each track is even though they are jumbled.
EDIT: For Sonic 1 and Sonic 2 2013, the loop data can be found in Bytecode/LevelSelect.bin in the first little chunk of text. This works for both Sonic 1 and 2 2013. When I'm done, I'll post a .txt file here with all the loop points of the three games so everyone can loop their own files. Not sure where else to post it to get it out there so everyone knows. Also, Koto, here: http://www.mediafire.com/download/suci913iymo1hvs/Sonic2013-ogg.zip Those are the files ripped straight from the game. I renamed the Sonic 2 ones so they aren't just numbers.
Double post, whatever. I found all of the loop points except for the speed-up variants because I didn't feel like finding those, and also I don't think the demand would be particularly high. So here is a .txt containing all of the loop points (sans speed-up) for Sonic CD 2011, Sonic 1 2013, and Sonic 2 2013 (credit to Taxman for providing the CD loop points): http://www.mediafire.com/download/xj7dupnezn04ywi/RSDK-Loop+Points.txt Enjoy, and spread this around as much as you can--I'm not really sure how to get it out there so that people don't slave over this like I did.
Hi, I just edited the the STARTLOOP and LOOPLENGTHS fields in the metadata section of the file and then renamed the extension from ogg to logg. Thanks for providing the Loop START info :) Looplength is total sample size which foobar or any other program tells you or just time x sample rate e.g. 1:30 = 90 x 44100 = 3969000
manakoAT: All of the base ogg files are in that .zip I posted above. I'll repost the link: http://www.mediafire.com/download/suci913iymo1hvs/Sonic2013-ogg.zip