I have a track that I'm attempting to loop using Audacity, but I never seem to get it to work. I use the metadata function to set a LOOPSTART and LOOPLENGTH, and it seems like it works in Audacity, but when I put the file into the game it loops at the wrong spot. Why does this happen? Is there a fix?
How to make .ogg tracks loop properly?
RPG Maker MZ SupportJust for complete clarity, what is the “wrong spot” that it is looping to? The beginning? A completely different part of the song entirely?
Are you trimming off any excess audio? I’ve noticed if I don’t cut off the tail past my LOOPLENGTH point, it sometimes will have unwanted effects or not loop at all.
Also, for shiggles. What version of Audacity are you using?
Are you trimming off any excess audio? I’ve noticed if I don’t cut off the tail past my LOOPLENGTH point, it sometimes will have unwanted effects or not loop at all.
Also, for shiggles. What version of Audacity are you using?
I believe the loop ends earlier than it should? Like, I put in the LOOPLENGTH point, and in Audacity it works fine (or at least it looks like it according to the selection point), but when I play it in-game, the loop ends a few seconds earlier than it should. I've tried trimming the audio after the loop end point, but it doesn't help.
I'm using Audacity 3.5.1. I'm not super knowledgeable when it comes to audio editing or anything so I'm not sure if there's a different version I should use or if there's a better program entirely.
Okay, update. I managed to find a STUPID solution for this problem. Since the loop ends earlier than it's supposed to, I decided to just extend the LOOPLENGTH by a good amount. I managed to solve this issue by simply adding an additional 211,000 samples to LOOPLENGTH. The original LOOPLENGTH metadata was 2,257,353 samples, so I added added an extra 211,000 to make it 2,468,353. The weirdest part is that this WORKS PERFECTLY.
Yes, it's a stupid solution, but it actually works and unless something changes that disrupts this solution, or I come across an easier more simple one, this is what I'm sticking with. If it works it works LOL.
I'm using Audacity 3.5.1. I'm not super knowledgeable when it comes to audio editing or anything so I'm not sure if there's a different version I should use or if there's a better program entirely.
Okay, update. I managed to find a STUPID solution for this problem. Since the loop ends earlier than it's supposed to, I decided to just extend the LOOPLENGTH by a good amount. I managed to solve this issue by simply adding an additional 211,000 samples to LOOPLENGTH. The original LOOPLENGTH metadata was 2,257,353 samples, so I added added an extra 211,000 to make it 2,468,353. The weirdest part is that this WORKS PERFECTLY.
Yes, it's a stupid solution, but it actually works and unless something changes that disrupts this solution, or I come across an easier more simple one, this is what I'm sticking with. If it works it works LOL.
Not to resurrect a dead topic, but I have been having this same issue for a while. I tried the trimming the loop part as well.
As for Audacity, I have the most recent version.
I'm going to leave this here for @mascot1063 from this thread And anyone else who is having issues looping music for RPGMAKER.
If you are having issues with RPGMAKER looping music on the wrong spot despite you entering the correct LOOPSTART and LOOPLENGTH in the music file's metadata in Audacity, Downgrade your Audacity version to something like Audacity 2.4.2 instead of using 3.X.X versions. There seems to be a bug that causes the program to give you the wrong sample times values to enter in the metadata. Just downgrade to a 2.0 version of Audacity and then try looping the music from there.
If you are having issues with RPGMAKER looping music on the wrong spot despite you entering the correct LOOPSTART and LOOPLENGTH in the music file's metadata in Audacity, Downgrade your Audacity version to something like Audacity 2.4.2 instead of using 3.X.X versions. There seems to be a bug that causes the program to give you the wrong sample times values to enter in the metadata. Just downgrade to a 2.0 version of Audacity and then try looping the music from there.
Do you know where I can find an a download for that version of audacity?
I've been using Audacity 3.7.4 to create looping OGG files, and they have been working fine for me - the one thing that does need to be checked is the sample rate as I initially had issues with the track looping in the wrong spot in RPG Maker until I realised this.
The sample rate of the audio tracks imported into Audacity and the sample rate of the exported OGG file need to match.
For example, my original tracks are 44100 Hz, however, this version of Audacity seems to default to 48000 Hz when exporting. When I changed this to 44100 Hz the tracks looped in the correct spot in RPG Maker. I belive the reason why this seems to work for you is that Audacity 2.4.2 has a default sample rate of 44100 Hz, so the "mismatch" doesn't occur.
This is the part of the screen to find this setting when exporting tracks:
The sample rate of the audio tracks imported into Audacity and the sample rate of the exported OGG file need to match.
For example, my original tracks are 44100 Hz, however, this version of Audacity seems to default to 48000 Hz when exporting. When I changed this to 44100 Hz the tracks looped in the correct spot in RPG Maker. I belive the reason why this seems to work for you is that Audacity 2.4.2 has a default sample rate of 44100 Hz, so the "mismatch" doesn't occur.
This is the part of the screen to find this setting when exporting tracks:
I tried exporting it with 44100 HZ but that didn't work. Do you have any other ideas?
You could find it through That link and scrolling down through this link
Download Audacity | Windows, macOS and Linux
Download Audacity for Windows, macOS and Linux
Through that link I have circled there.
If you're recording in Audacity, you can check the recording sample rate and the default sample rate under Edit → Preferences → Audio Settings and make sure this is the same number.
I've just had a fiddle around with Audacity and it seems that it does not matter what the sample rate of imported audio files is, the sample rate in these settings will determine the number of samples shown in the selection window at the bottom of the screen.
It might be worth checking to see if this matches the export sample rate?
Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-ogg-tracks-loop-properly.168089/