Browse Source

Show force-stereo option in UI, works now (LADPSPA only, WIP)

tags/1.9.6
falkTX 9 years ago
parent
commit
62277318ae
3 changed files with 4 additions and 7 deletions
  1. +3
    -3
      resources/ui/carla_edit.ui
  2. +1
    -1
      source/backend/plugin/CarlaPluginLADSPA.cpp
  3. +0
    -3
      source/carla_widgets.py

+ 3
- 3
resources/ui/carla_edit.ui View File

@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>501</width>
<height>431</height>
<width>509</width>
<height>443</height>
</rect>
</property>
<property name="windowTitle">
@@ -350,7 +350,7 @@
<item>
<widget class="QCheckBox" name="ch_force_stereo">
<property name="text">
<string>Force Stereo (needs restart)</string>
<string>Force Stereo (needs reload)</string>
</property>
</widget>
</item>


+ 1
- 1
source/backend/plugin/CarlaPluginLADSPA.cpp View File

@@ -197,7 +197,7 @@ public:
if (pData->engine->getProccessMode() == ENGINE_PROCESS_MODE_CONTINUOUS_RACK)
pass();
// if inputs or outputs are just 1, then yes we can force stereo
else if (pData->audioIn.count == 1 || pData->audioOut.count == 1)
else if (pData->audioIn.count == 1 || pData->audioOut.count == 1 || fForcedStereoIn || fForcedStereoOut)
options |= PLUGIN_OPTION_FORCE_STEREO;
}



+ 0
- 3
source/carla_widgets.py View File

@@ -561,9 +561,6 @@ class PluginEdit(QDialog):
host.ReloadProgramsCallback.connect(self.slot_handleReloadProgramsCallback)
host.ReloadAllCallback.connect(self.slot_handleReloadAllCallback)

# TODO
self.ui.ch_force_stereo.hide()

#------------------------------------------------------------------

@pyqtSlot(int, int, int, int)


Loading…
Cancel
Save