Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Getting sound to not overlap

$
0
0

Hi, first time posting here. Im extremely new to coding in general, but Im in a class that uses Processing. So I need help in THE most simplest terms imaginable lol. I have an assignment to make a very simple video game. The only problem Im having is that the background music I have set up to play continually starts to play another file of the mp3 ontop of the original. The end result being the song playing over itself hundreds of times, just milliseconds apart from each other. I set up an if statement to turn the bgm to false as soon as it starts to play, which solves the multiple songs playing at once, but when the song is over I cannot get it to loop. I need the song to just immediately play again as soon as it ends. What is the simplest way to achieve this?


Viewing all articles
Browse latest Browse all 2896

Trending Articles