< prev index next >

src/java.desktop/share/classes/com/sun/media/sound/SoftReceiver.java

Print this page

        

*** 20,29 **** --- 20,30 ---- * * 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,63 **** --- 51,66 ---- 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,87 **** --- 81,91 ---- } else { mainmixer.processMessage(message); } } + @Override public void close() { synchronized (control_mutex) { open = false; } synth.removeReceiver(this);
< prev index next >