In my application, I have audio running thrughout the whole time the application is open.
However, whenever I exit the application, my computer makes a noise that makes me think that something went wrong. I dont really know how to explain it other than it is just one tone and it does not sound like the audio that I had playing.
Is there a way to make this sound not occur? Should I stop the audio from playing before the application exits?
I don't know how your application is exited, but unless you call System.exit, the sound playing threads will continue until they end. I'd definitely stop them. Also, you should make the playing variable volatile, as it's clearly meant to be shared among multiple threads.
I don't see any GUI related code here, so I'll move this thread to Java in General.