mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
allow to custom select panner-type for each delivery.
This commit is contained in:
parent
9c595f8131
commit
291618fe71
10 changed files with 82 additions and 32 deletions
|
|
@ -20,6 +20,7 @@
|
|||
#include <gtkmm2ext/doi.h>
|
||||
|
||||
#include "ardour/io.h"
|
||||
#include "ardour/panner_manager.h"
|
||||
#include "ardour/send.h"
|
||||
#include "ardour/rc_configuration.h"
|
||||
|
||||
|
|
@ -70,7 +71,11 @@ SendUI::SendUI (Gtk::Window* parent, boost::shared_ptr<Send> s, Session* session
|
|||
|
||||
_send->output()->changed.connect (connections, invalidator (*this), boost::bind (&SendUI::outs_changed, this, _1, _2), gui_context());
|
||||
|
||||
uint32_t const in = _send->pans_required();
|
||||
uint32_t const out = _send->pan_outs();
|
||||
|
||||
_panners.set_width (Wide);
|
||||
_panners.set_available_panners(PannerManager::instance().PannerManager::get_available_panners(in, out));
|
||||
_panners.setup_pan ();
|
||||
|
||||
_gpm.setup_meters ();
|
||||
|
|
@ -97,7 +102,14 @@ SendUI::outs_changed (IOChange change, void* /*ignored*/)
|
|||
{
|
||||
ENSURE_GUI_THREAD (*this, &SendUI::outs_changed, change, ignored)
|
||||
if (change.type & IOChange::ConfigurationChanged) {
|
||||
uint32_t const in = _send->pans_required();
|
||||
uint32_t const out = _send->pan_outs();
|
||||
if (_panners._panner == 0) {
|
||||
_panners.set_panner (_send->panner_shell(), _send->panner());
|
||||
}
|
||||
_panners.set_available_panners(PannerManager::instance().PannerManager::get_available_panners(in, out));
|
||||
_panners.setup_pan ();
|
||||
_panners.show_all ();
|
||||
_gpm.setup_meters ();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue