public ExampleHost() { List<String> driverNameList = JAsioHost.getDriverNames(); asioDriver = JAsioHost.getAsioDriver(driverNameList.get(0)); activeChannels = new HashSet<AsioChannelInfo>(); activeChannels.add(asioDriver.getChannelInfoOutput(0)); activeChannels.add(asioDriver.getChannelInfoOutput(1)); asioDriver.addAsioDriverListener(this); sampleIndex = 0; }
public static void main(String[] args) { ExampleHost host = new ExampleHost(); host.openControlPanel(); try { Thread.sleep(1000); } catch (Exception e) { // ??? } host.start(); try { Thread.sleep(4000); } catch (Exception e) { // ??? } JAsioHost.shutdownAndUnloadDriver(); }