< prev index next >
src/java.desktop/share/classes/com/sun/media/sound/SoftReceiver.java
Print this page
@@ -20,10 +20,11 @@
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
+
package com.sun.media.sound;
import java.util.TreeMap;
import javax.sound.midi.MidiDevice;
@@ -50,14 +51,16 @@
this.mainmixer = synth.getMainMixer();
if (mainmixer != null)
this.midimessages = mainmixer.midimessages;
}
+ @Override
public MidiDevice getMidiDevice() {
return synth;
}
+ @Override
public void send(MidiMessage message, long timeStamp) {
synchronized (control_mutex) {
if (!open)
throw new IllegalStateException("Receiver is not open");
@@ -78,10 +81,11 @@
} else {
mainmixer.processMessage(message);
}
}
+ @Override
public void close() {
synchronized (control_mutex) {
open = false;
}
synth.removeReceiver(this);
< prev index next >