Author Topic: Audio: loop gap from the end to the beginning.  (Read 254 times)

Audio: loop gap from the end to the beginning.
« on: 06 Jan 2021, 20:02 »
Good evening all.

I realized that the ambiance loops leave a gap before they start again that lasts a little less than a second.
I know it is not too much, but it is fair enought to be noticed, especially if the game is playing a noisy ambience, as the sound of the rain.
I tested that the loop is correct if I execute it outside of AGS.
Does anybody experienced this issue? Is there any way to fix it?

Regards.

Re: Audio: loop gap from the end to the beginning.
« Reply #1 on: 06 Jan 2021, 22:16 »
If you want to create seamless loops in AGS, you need to use ogg or wav. Converting to mp3 always leaves a silent "gap" (this is an issue in the format itself, not in AGS), so in very simple terms, mp3s can only be looped seamlessly if the application you're using "knows" this and can compensate for it by removing that gap in real time. Most mp3 players and audio editing apps do this, which is why you don't hear the gap when you play your loop outside of AGS.


Re: Audio: loop gap from the end to the beginning.
« Reply #2 on: 07 Jan 2021, 08:43 »
Hello, thanks for your answer.

it is ok to convert the sounds to ogg, or I need to export the audio again?

Regards.

Re: Audio: loop gap from the end to the beginning.
« Reply #3 on: 07 Jan 2021, 10:28 »
If you convert your mp3 directly to ogg, then the gap will still be there, of course (not to mention that the two-step compression would result in further loss of quality). You would need to export the audio directly to ogg if your audio editing software/DAW allows for it, or export to wav and then convert from that to ogg.

Re: Audio: loop gap from the end to the beginning (SOLVED)
« Reply #4 on: 07 Jan 2021, 14:41 »
Ok, thank you very much for the information