Closed dogtopus closed 9 years ago
Yes: https://github.com/Ancurio/mkxp/blob/master/src/vorbissource.cpp#L134
Edit: Sorry, did you have any questions regarding the implementation?
Nope. I found this issue when I was testing mkxp with games made with different versions of RPG Makers. Then I decided to file a ticket here just in case if you don't know it already
So you are saying the ogg looping is not working correctly for you with mkxp? Could you provide a sample file which doesn't loop correctly?
Sorry, I think I made a mistake. I specified a wrong RTP path which contains all the RTP BGMs in MP3 format (which was built for some sort of testing purpose long time ago) so that's why it isn't looping You may close this issue now
No problem =)
The BGM files included in the RPGVXAce RTP have 2 tags that control the looping. They are stored as comments and can be easily retrieved using libvorbisfile/vorbiscomment tool. For example, this is the looping tag from Theme1.ogg:
The
LOOPSTART
is the offset of where the loop starts (in number of samples), and theLOOPLENGTH
is the length of the loop (also in number of samples)