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();
}
}
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();
}
}
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();
}
}
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();
}
}
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;
}
Aggregations