Music Loop Positions Bug

sammyrms1

Member
I did some testing of changing music with loop points at a specific scroll position,  and I noticed a weird bug when playing the music in-game.
For some reason, the loop position from the base music gets ignored and uses the loop position from the scrollpos specified music instead.

Base music
Code:
music	data/music/STAGE6-2.ogg 870534

Music at specified scrollpos
Code:
music	data/music/STAGE6-2B.ogg 635840
at 1520

 
As magggas said, it's not a bug, but it's tricky to set with the right position for music to be played. I think you made the number exact instead of putting specific decimals for the music to loop. Try to work hard on finding the right loop and calculate Hz and the loop start.

Example:
Code:
music           data/music/ryu.ogg 1992614.4  #1:30.368 = 90.368 => 22050 * 90.368 = 1992614.4 # loop start * Hz

 
Back
Top Bottom