I need a .wav file to loop while a Canvas contained in a JFrame is opened, and stop when closed. I tried looking around but nothing seems to work, is there any way to do this with Clip? Can anyone giving me a simple example? Thank you very much.
EDIT: I know how to loop a Clip file or play it once, it just doesn't stop when the frame is closed, it keeps looping.