Subversion Repositories svn.mios

Rev

Rev 642 | Rev 684 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
628 adamjking 1
package org.midibox.apps.miosstudiosid;
2
 
3
import org.midibox.apps.SIDV2librarian.SIDV2librarian;
4
 
5
public class MIOSStudioSID extends org.midibox.apps.miosstudio.MIOSStudio {
6
 
7
    private SIDV2librarian sidv2librarian;
8
 
9
    public SIDV2librarian getSidv2librarian() {
10
 
11
        return sidv2librarian;
12
    }
13
 
14
    protected void createDevices() {
15
 
16
        super.createDevices();
17
 
641 adamjking 18
        sidv2librarian = new SIDV2librarian(null, null);
628 adamjking 19
    }
20
 
21
    protected void routeIndividualDevices() {
22
 
23
        super.routeIndividualDevices();
24
 
25
        midiDeviceRouting.addMidiWriteDevice(sidv2librarian
26
                .getSysExControllerDevice());
27
        midiDeviceRouting.addMidiReadDevice(sidv2librarian
28
                .getSysExControllerDevice());
29
    }
30
 
31
    public void connectDevices() {
32
 
33
        super.connectDevices();
34
 
35
        midiDeviceRouting.connectDevices(miosStudioInPort, sidv2librarian
36
                .getSysExControllerDevice());
37
        midiDeviceRouting.connectDevices(sidv2librarian
38
                .getSysExControllerDevice(), miosStudioOutPort);
39
    }
40
}