Sound in the draw loop is a common problem because you have to figure out a way to instantly make the condition false so the sound doesn’t repeatedly play. There are two good solutions in this post. Let us know if they don’t work for you or you have questions.
~Michelle