mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
VST3: fix crash on fan-out
This commit is contained in:
parent
ebbf34b266
commit
127cf7aaae
1 changed files with 8 additions and 0 deletions
|
|
@ -246,6 +246,14 @@ VST3Plugin::print_parameter (uint32_t port, std::string& rv) const
|
||||||
Plugin::IOPortDescription
|
Plugin::IOPortDescription
|
||||||
VST3Plugin::describe_io_port (ARDOUR::DataType dt, bool input, uint32_t id) const
|
VST3Plugin::describe_io_port (ARDOUR::DataType dt, bool input, uint32_t id) const
|
||||||
{
|
{
|
||||||
|
if ((dt == DataType::AUDIO &&
|
||||||
|
((input && id >= _plug->n_audio_inputs())
|
||||||
|
|| (!input && id >= _plug->n_audio_outputs())))
|
||||||
|
|| (dt == DataType::MIDI &&
|
||||||
|
((input && id >= _plug->n_midi_inputs())
|
||||||
|
|| (!input && id >= _plug->n_midi_outputs())))
|
||||||
|
return Plugin::describe_io_port(dt, input, id);
|
||||||
|
|
||||||
return _plug->describe_io_port (dt, input, id);
|
return _plug->describe_io_port (dt, input, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue