Search in sources :

Example 1 with DiskRenderService

use of blue.services.render.DiskRenderService in project blue by kunstmusik.

the class RealtimeRenderSettingsPanel method midiOutButtonActionPerformed.

// GEN-LAST:event_midiInButtonActionPerformed
private void midiOutButtonActionPerformed(java.awt.event.ActionEvent evt) {
    // GEN-FIRST:event_midiOutButtonActionPerformed
    String driver = null;
    if (midiDriverCBox.isSelected()) {
        driver = (String) midiDriverCombo.getSelectedItem();
    }
    String command = csoundExecText.getText();
    RealtimeRenderServiceFactory factory = (RealtimeRenderServiceFactory) renderServiceComboBox.getSelectedItem();
    DiskRenderService service = factory.createDiskRenderService();
    List<DeviceInfo> vals = DriverUtilities.getMidiDevices(command, driver, service, false);
    Object val = chooseDriver(vals);
    if (val != null) {
        DeviceInfo info = (DeviceInfo) val;
        midiOutText.setText(info.getDeviceId());
        fireUpdate();
    }
}
Also used : DeviceInfo(blue.services.render.DeviceInfo) RealtimeRenderServiceFactory(blue.services.render.RealtimeRenderServiceFactory) DiskRenderService(blue.services.render.DiskRenderService)

Example 2 with DiskRenderService

use of blue.services.render.DiskRenderService in project blue by kunstmusik.

the class RealtimeRenderSettingsPanel method audioInButtonActionPerformed.

// GEN-LAST:event_audioOutButtonActionPerformed
private void audioInButtonActionPerformed(java.awt.event.ActionEvent evt) {
    // GEN-FIRST:event_audioInButtonActionPerformed
    String driver = null;
    if (audioDriverCBox.isSelected()) {
        driver = (String) audioDriverCombo.getSelectedItem();
    }
    String command = csoundExecText.getText();
    RealtimeRenderServiceFactory factory = (RealtimeRenderServiceFactory) renderServiceComboBox.getSelectedItem();
    DiskRenderService service = factory.createDiskRenderService();
    List<DeviceInfo> vals = DriverUtilities.getAudioDevices(command, driver, service, true);
    Object val = chooseDriver(vals);
    if (val != null) {
        DeviceInfo info = (DeviceInfo) val;
        audioInText.setText(info.getDeviceId());
        fireUpdate();
    }
}
Also used : DeviceInfo(blue.services.render.DeviceInfo) RealtimeRenderServiceFactory(blue.services.render.RealtimeRenderServiceFactory) DiskRenderService(blue.services.render.DiskRenderService)

Example 3 with DiskRenderService

use of blue.services.render.DiskRenderService in project blue by kunstmusik.

the class RealtimeRenderSettingsPanel method midiInButtonActionPerformed.

// GEN-LAST:event_audioInButtonActionPerformed
private void midiInButtonActionPerformed(java.awt.event.ActionEvent evt) {
    // GEN-FIRST:event_midiInButtonActionPerformed
    String driver = null;
    if (midiDriverCBox.isSelected()) {
        driver = (String) midiDriverCombo.getSelectedItem();
    }
    String command = csoundExecText.getText();
    RealtimeRenderServiceFactory factory = (RealtimeRenderServiceFactory) renderServiceComboBox.getSelectedItem();
    DiskRenderService service = factory.createDiskRenderService();
    List<DeviceInfo> vals = DriverUtilities.getMidiDevices(command, driver, service, true);
    Object val = chooseDriver(vals);
    if (val != null) {
        DeviceInfo info = (DeviceInfo) val;
        midiInText.setText(info.getDeviceId());
        fireUpdate();
    }
}
Also used : DeviceInfo(blue.services.render.DeviceInfo) RealtimeRenderServiceFactory(blue.services.render.RealtimeRenderServiceFactory) DiskRenderService(blue.services.render.DiskRenderService)

Example 4 with DiskRenderService

use of blue.services.render.DiskRenderService in project blue by kunstmusik.

the class RealtimeRenderSettingsPanel method audioOutButtonActionPerformed.

// GEN-LAST:event_midiOutCBoxActionPerformed
private void audioOutButtonActionPerformed(java.awt.event.ActionEvent evt) {
    // GEN-FIRST:event_audioOutButtonActionPerformed
    String driver = null;
    if (audioDriverCBox.isSelected()) {
        driver = (String) audioDriverCombo.getSelectedItem();
    }
    String command = csoundExecText.getText();
    RealtimeRenderServiceFactory factory = (RealtimeRenderServiceFactory) renderServiceComboBox.getSelectedItem();
    DiskRenderService service = factory.createDiskRenderService();
    List<DeviceInfo> vals = DriverUtilities.getAudioDevices(command, driver, service, false);
    Object val = chooseDriver(vals);
    if (val != null) {
        DeviceInfo info = (DeviceInfo) val;
        audioOutText.setText(info.getDeviceId());
        fireUpdate();
    }
}
Also used : DeviceInfo(blue.services.render.DeviceInfo) RealtimeRenderServiceFactory(blue.services.render.RealtimeRenderServiceFactory) DiskRenderService(blue.services.render.DiskRenderService)

Example 5 with DiskRenderService

use of blue.services.render.DiskRenderService in project blue by kunstmusik.

the class DiskRenderManager method execWaitAndCollect.

public String execWaitAndCollect(String[] args, File currentWorkingDirectory) {
    DiskRenderServiceFactory factory = DiskRenderSettings.getInstance().renderServiceFactory;
    DiskRenderService diskRenderService = factory.createInstance();
    String csoundOutput = diskRenderService.execWaitAndCollect(args, currentWorkingDirectory);
    return csoundOutput;
}
Also used : DiskRenderServiceFactory(blue.services.render.DiskRenderServiceFactory) DiskRenderService(blue.services.render.DiskRenderService)

Aggregations

DiskRenderService (blue.services.render.DiskRenderService)5 DeviceInfo (blue.services.render.DeviceInfo)4 RealtimeRenderServiceFactory (blue.services.render.RealtimeRenderServiceFactory)4 DiskRenderServiceFactory (blue.services.render.DiskRenderServiceFactory)1