forked from itdelatrisu/opsu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Steffan Byrne
committed
Jan 22, 2017
1 parent
f34732f
commit ccf935b
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package itdelatrius.opsu; | ||
|
||
import java.io.IOException; | ||
import java.net.URL; | ||
|
||
import javax.sound.sampled.AudioInputStream; | ||
import javax.sound.sampled.AudioSystem; | ||
import javax.sound.sampled.LineUnavailableException; | ||
import javax.sound.sampled.UnsupportedAudioFileException; | ||
|
||
import org.junit.Test; | ||
import org.newdawn.slick.util.ResourceLoader; | ||
|
||
import itdelatrisu.opsu.audio.MultiClip; | ||
|
||
public class MultiClipTest { | ||
|
||
@Test | ||
public void multiClipCanBeCreated() throws UnsupportedAudioFileException, IOException, LineUnavailableException { | ||
// test to catch issue with creating clips on linux. | ||
URL url = ResourceLoader.getResource("applause.wav"); | ||
AudioInputStream audioIn = AudioSystem.getAudioInputStream(url); | ||
MultiClip clip = new MultiClip("test", audioIn); | ||
clip.destroy(); | ||
} | ||
|
||
} |