SRB2 Message Board

SRB2 Message Board (https://mb.srb2.org/index.php)
-   Editing Help (https://mb.srb2.org/forumdisplay.php?f=64)
-   -   SRB2K Music Looping Help (https://mb.srb2.org/showthread.php?t=49554)

thomadash 10-09-2020 01:57 PM

SRB2K Music Looping Help
 
I'm making a music mod for SRB2K. I've made sure that I got the correct loop points for all tracks, yet when I test them in-game, the loop point is very far off from where it's supposed to loop back to. I've tried everything but it just won't go away. This is my first ever SRB2K mod, so it would really help if someone could help identify the problem so I can fix it! https://drive.google.com/drive/folde...mj?usp=sharing

Zwip-Zwap Zapony 10-09-2020 05:06 PM

Quote:

Originally Posted by thomadash (Post 838823)
[...] I've made sure that I got the correct loop points for all tracks, yet when I test them in-game, the loop point is very far off from where it's supposed to loop back to. [...] [Download link]

Your music tracks (at least one of them) have a sample rate of 48000 hertz. Since version 2.1.12 of SRB2 (which also applies to SRB2Kart), the "LOOPPOINT"-related methods of looping music has only properly supported music with a sample rate of 44100 hertz.


Either use "LOOPMS" instead of "LOOPPOINT" to set a loop point (in 1000ths of a second), change the music to have a sample rate of 44100 hertz instead of 48000 (while also adjusting "LOOPPOINT" to fit the new sample point to loop at... but if you'll have to modify the loop tag anyway, you might as well change it to "LOOPMS" instead), or do both of those things (which is the officially preferred option... even if vanilla SRB2 itself strangely doesn't do so).


All times are GMT. The time now is 07:38 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.