mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
VST3: initialize bus and speaker arrangement during instaniation
This commit is contained in:
parent
3e27049b00
commit
f9b1de355d
2 changed files with 4 additions and 4 deletions
|
|
@ -201,7 +201,7 @@ public:
|
||||||
void set_owner (ARDOUR::SessionObject* o);
|
void set_owner (ARDOUR::SessionObject* o);
|
||||||
void set_non_realtime (bool);
|
void set_non_realtime (bool);
|
||||||
|
|
||||||
void enable_io (std::vector<bool> const&, std::vector<bool> const&);
|
void enable_io (std::vector<bool> const&, std::vector<bool> const&, bool force = false);
|
||||||
|
|
||||||
void process (float** ins, float** outs, uint32_t n_samples);
|
void process (float** ins, float** outs, uint32_t n_samples);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ VST3Plugin::init ()
|
||||||
}
|
}
|
||||||
|
|
||||||
/* pre-configure from GUI thread */
|
/* pre-configure from GUI thread */
|
||||||
_plug->enable_io (_connected_inputs, _connected_outputs);
|
_plug->enable_io (_connected_inputs, _connected_outputs, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
@ -2240,9 +2240,9 @@ VST3PI::set_event_bus_state (bool enable)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
VST3PI::enable_io (std::vector<bool> const& ins, std::vector<bool> const& outs)
|
VST3PI::enable_io (std::vector<bool> const& ins, std::vector<bool> const& outs, bool force)
|
||||||
{
|
{
|
||||||
if (_enabled_audio_in == ins && _enabled_audio_out == outs) {
|
if (_enabled_audio_in == ins && _enabled_audio_out == outs && !force) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue