I finally got round to adding sound into my game, and I wanted to use ogg. Took me a while to find what I wanted and then found EasyOgg to be my answer.
I don’t know much about sound but I did improve on the code quality, e.g removed useless variables, code reuse and all the tips from FindBugs. But wondering if someone could help me(and others who want to use this) where I left off and improve it more.
There is no way to set the volume of the left and right channels is someone able to help create a constructor or so that able to do this?
Also stopping isn’t instant and playing multiple times and sound is corrupted.
I have attached my changes below.
Edit: added a method to tell if the clip is still playing.