Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: He-Man on Mon 12/09/2005 18:54:02

Title: music repeat problem
Post by: He-Man on Mon 12/09/2005 18:54:02
Hi.
I'm not sure if this question should go into the beginners forum. If that is the case, please move it?

I'm using mp3 soundtrack for my game. To save space some of the tracks a quite short.
The problem is that everytime a song starts over there's a short break. I've prevoiusly solved this by cutting a small piece of the music away so that the the feeling of the music stayed tight. But the small hole of nothing before the track restarts still remains.

Is there any way to get rid of this hole?

NOTE: I've played the files on repeat in others programs. Here there is no hole and the song repeat flawless!
Title: Re: music repeat problem
Post by: simulacra on Tue 13/09/2005 19:24:26
How long are the MP3s?
Title: Re: music repeat problem
Post by: He-Man on Tue 13/09/2005 20:24:33
That's a little different. But around one min.
Title: Re: music repeat problem
Post by: Pumaman on Tue 13/09/2005 20:41:20
If you try converting one of the tracks to WAV or OGG, do you still get the problem?
Title: Re: music repeat problem
Post by: He-Man on Tue 20/09/2005 15:49:44
Ok, now I've tried converting one of files to both WAVnd OGG.
When the file is WAV there's no music at all and when it's OGG it has the same problem as the MP3.

It's like the game needs half a second to reload the song when it starts over...
Title: Re: music repeat problem
Post by: Pumaman on Tue 20/09/2005 20:51:47
It's possible that the MP3/OGG decoder needs a brief period of time to buffer and decode the track before it starts re-playing. I'm not sure if there's anything I can do about it, to be honest.

If it's really important that it loops seamlessly, you could try using it as an ambient sound and see if that works and better.