Subversion Repositories svn.mios

Rev

Rev 684 | Rev 739 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 684 Rev 738
Line 107... Line 107...
107
107
108
    public void reconnectAllDevices() { // This function is a workaround for the
108
    public void reconnectAllDevices() { // This function is a workaround for the
109
        // SysEx (string length doesn't reset)
109
        // SysEx (string length doesn't reset)
110
        // bug in the javax.sound.midi class
110
        // bug in the javax.sound.midi class
111
        if (midiDeviceRouting != null) {
111
        if (midiDeviceRouting != null) {
112
            midiDeviceRouting.disconnectDevices(inputMidiDevice, localMidiDevice);
112
            midiDeviceRouting.disconnectDevices(inputMidiDevice,
-
 
113
                    localMidiDevice);
113
            midiDeviceRouting.disconnectDevices(localMidiDevice, outputMidiDevice);
114
            midiDeviceRouting.disconnectDevices(localMidiDevice,
-
 
115
                    outputMidiDevice);
114
            midiDeviceRouting.connectDevices(inputMidiDevice, localMidiDevice);
116
            midiDeviceRouting.connectDevices(inputMidiDevice, localMidiDevice);
115
            midiDeviceRouting.connectDevices(localMidiDevice, outputMidiDevice);
117
            midiDeviceRouting.connectDevices(localMidiDevice, outputMidiDevice);
116
        }
118
        }
117
119
118
    }
120
    }