Error loading audio in java (illegal call to open() in interface Clip)
问题 I'm writing an new audio system for my game and i have come across this error and can not seem to find and solution anywhere, java.lang.IllegalArgumentException: illegal call to open() in interface Clip at com.sun.media.sound.DirectAudioDevice$DirectClip.implOpen(Unknown Source) at com.sun.media.sound.AbstractDataLine.open(Unknown Source) at com.sun.media.sound.AbstractDataLine.open(Unknown Source) This is the code i use to load and play my audio. private Clip load(String filename) { try { /