Looping Audio problems

Hello, I've been following a tutorial on how to loop audio (BGM) properly. I've followed all the steps, but for some reason when I play it in-game, the audio cuts off part-way and restarts. The game recognises the start of the loop, but doesn't recognise the end properly. How can I fix this? (I've included a screenshot of the audio metadata for further reference, I hope I've put this in the right place too)

The tutorial that I followed
I think it'd be helpful to screen cap the whole audacity screen.
Loopstart and looplength should have 9 digits but you only have 5 and 7.
It seems you didn't write down the zeros at the beginning
I think it'd be helpful to screen cap the whole audacity screen.
Loopstart and looplength should have 9 digits but you only have 5 and 7.
It seems you didn't write down the zeros at the beginning
Thanks for the response. I added the missing zeros, but nothing changed.
Thanks for the response. I added the missing zeros, but nothing changed.
Do you have the screen cap of the whole Audacity?
*Can be above one but without cropping
How long is your music track? If you select "Start and Length of Selection" at the bottom and enter the numbers there, it should select the portion that is looped.

Inputting the numbers you have, it should be cutting off at around 1:07 mark of your music track and restarting very close to the beginning (about 0.6 secs in).
I recall I saw a topic about reading loop tags of ogg file.

Edit* OK it seems it is not the same kind of loop they are talking about.:hswt:
Do you have the screen cap of the whole Audacity?
*Can be above one but without cropping
Here's the whole screen:
Here's the whole screen:
Try to zoom in very close to the end part, it seems that part haven't been blocked properly 🙂

Edit : Blocking further will change the value of looplength, save with the new looplength
Try to zoom in very close to the end part, it seems that part haven't been blocked properly 🙂

Edit : Blocking further will change the value of looplength, save with the new looplength
What do you mean by blocking the end part? Should I cut it off from the audio and then save the new loop length?
What do you mean by blocking the end part? Should I cut it off from the audio and then save the new loop length?
I mean select until the end part, it seems there are some parts that haven't been selected.
To see the correct value
I mean select until the end part, it seems there are some parts that haven't been selected.
To see the correct value
After zooming in, this does seem to be the end of the audio, it seems like everything is selected on my end. The results are the same as last time.
How does it sound when you copy and paste the selected section at the end of the current track? (similar to the diagram below)
Does it sound correct when it transitions into the looped section in Audacity?
How does it sound when you copy and paste the selected section at the end of the current track? (similar to the diagram below)
Does it sound correct when it transitions into the looped section in Audacity?
It sounds fine when it transitions into the loop.
Hmmmm. On paper, that should all work. The last option is to upload the file if you're comfortable with that to see how it sounds on my end.

I assume you are using MV?
Hmmmm. On paper, that should all work. The last option is to upload the file if you're comfortable with that to see how it sounds on my end.

I assume you are using MV?
Yeah, I'm using MV
One thing that was strange is that I had done this music process before not too long ago, using the same process and it worked perfectly, so I don't know what was wrong this time.
I've checked both music files and I don't know what's wrong, I've included images of both metadatas of the working (left image) bgm and the non-working (right image) bgm
Adding the "TXXX" tag into the non-working song didn't change anything, as well.

UPDATE: I have found and solved the problem.
The sample rate on the songs when exporting from Audacity was 48000 Hz instead of 44100 Hz. Thanks again to those who helped!
UPDATE: I have found and solved the problem.
The sample rate on the songs when exporting from Audacity was 48000 Hz instead of 44100 Hz. Thanks again to those who helped!
Good to know you worked out the cause. Learnt something new today!
This thread is closed due to being indicated as solved. Report the next one so it’s easier to find! If you need this one reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/looping-audio-problems.176053/