From 49072956a7519b12bb62da4a49ed40330924bad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bokros=20B=C3=A1lint?= Date: Sun, 15 May 2016 20:25:21 +0200 Subject: [PATCH] Background music now loops instead of playing once --- cicaprojekt/Display.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cicaprojekt/Display.java b/cicaprojekt/Display.java index 81adacc..5ce8a9a 100644 --- a/cicaprojekt/Display.java +++ b/cicaprojekt/Display.java @@ -37,7 +37,7 @@ public class Display extends JPanel{ AudioSystem.getAudioInputStream(new URL("http://users.hszk.bme.hu/~bb1376/tomboy.wav"))) { clip = AudioSystem.getClip(); clip.open(ais); - clip.start(); + clip.loop(Clip.LOOP_CONTINUOUSLY); } catch(Exception e) { e.printStackTrace(System.out);