Subversion Repositories svn.mios

Rev

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

Rev 628 Rev 641
Line 1... Line 1...
1
package org.midibox.apps.miosstudiosid;
1
package org.midibox.apps.miosstudiosid;
-
 
2
-
 
3
import java.util.Observable;
2
4
3
import org.midibox.apps.SIDV2librarian.SIDV2librarian;
5
import org.midibox.apps.SIDV2librarian.SIDV2librarian;
4
6
5
public class MIOSStudioSID extends org.midibox.apps.miosstudio.MIOSStudio {
7
public class MIOSStudioSID extends org.midibox.apps.miosstudio.MIOSStudio {
6
8
Line 13... Line 15...
13
15
14
    protected void createDevices() {
16
    protected void createDevices() {
15
17
16
        super.createDevices();
18
        super.createDevices();
17
19
18
        sidv2librarian = new SIDV2librarian(null);
20
        sidv2librarian = new SIDV2librarian(null, null);
19
21
20
        sidv2librarian.getSIDLibController().addObserver(this);
22
        sidv2librarian.getSIDLibController().addObserver(this);
21
    }
23
    }
22
24
23
    protected void routeIndividualDevices() {
25
    protected void routeIndividualDevices() {
Line 36... Line 38...
36
38
37
        midiDeviceRouting.connectDevices(miosStudioInPort, sidv2librarian
39
        midiDeviceRouting.connectDevices(miosStudioInPort, sidv2librarian
38
                .getSysExControllerDevice());
40
                .getSysExControllerDevice());
39
        midiDeviceRouting.connectDevices(sidv2librarian
41
        midiDeviceRouting.connectDevices(sidv2librarian
40
                .getSysExControllerDevice(), miosStudioOutPort);
42
                .getSysExControllerDevice(), miosStudioOutPort);
-
 
43
    }
-
 
44
   
-
 
45
    public void update(Observable observable, Object object) {
-
 
46
       
-
 
47
        super.update(observable, object);
-
 
48
       
-
 
49
        if (object == "Edit") {
-
 
50
-
 
51
            boolean portsReleased = midiDeviceRouting.getPortsReleased();
-
 
52
-
 
53
            if (!portsReleased) {
-
 
54
                midiDeviceRouting.setPortsReleased(true);
-
 
55
                midiDeviceRouting.setPortsReleased(false);
-
 
56
            }
-
 
57
        }
41
    }
58
    }
42
}
59
}