[Solved?] Audio glitch when looping

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
yon
Regular
Posts: 153
Joined: Tue Sep 09, 2014 5:09 pm
Projects: YDSP
Location: United States
Contact:

[Solved?] Audio glitch when looping

#1 Post by yon » Sat Sep 17, 2022 5:53 pm

Whenever I try to loop a song, there's a tiny little "blip" that happens right when it ends and starts a new loop.

I'm using .ogg files, and there is no gap in the file itself. This is the code I'm using, using the "from" just to test that it always happens on the loop, not the end of the file.

Code: Select all

play music "<from 1 to 10>audio/song.ogg" fadein 2.5
It happens no matter what song I use. It also happens whenever I end a song, like when I roll back to before the song starts. The only workaround I've found is the fadein/fadeout, but I can't do that for looping.

It's not smooth. How do I make it stop, please?
Last edited by yon on Wed Sep 21, 2022 2:41 am, edited 1 time in total.

User avatar
yon
Regular
Posts: 153
Joined: Tue Sep 09, 2014 5:09 pm
Projects: YDSP
Location: United States
Contact:

Re: Audio glitch when looping

#2 Post by yon » Sat Sep 17, 2022 6:00 pm

I don't notice any blip when I listen to the audio loop in the tutorial file, if that helps at all. It only happens in my own game.

It even happens when I try using the song from the tutorial in my game. It sounds like a record skipping.

User avatar
yon
Regular
Posts: 153
Joined: Tue Sep 09, 2014 5:09 pm
Projects: YDSP
Location: United States
Contact:

Re: Audio glitch when looping

#3 Post by yon » Sat Sep 17, 2022 6:22 pm

Now I added an .ogg which HAS silence at the end, and there's no blip there? But I don't want to have to include silence when looping for all of these.

User avatar
yon
Regular
Posts: 153
Joined: Tue Sep 09, 2014 5:09 pm
Projects: YDSP
Location: United States
Contact:

Re: Audio glitch when looping

#4 Post by yon » Wed Sep 21, 2022 2:41 am

Update: It's gone now. Maybe I just had to restart my computer? Either way, it's fine now.

Post Reply

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot]