-
For now I am interested in output audio ports from a host perspective. clap_audio_port_info describes an output configuration or an output bus?
What index? If a plugin, for example, supports 8 audio output channels, say 3 stereo and 2 mono, how would that be configured? Any help greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
and
similarly the Does that help? |
Beta Was this translation helpful? Give feedback.
clap_plugin_audio_ports
has acount
method which says how many ports you have. Each port has a bus configuration which is described by theclap_audio_port_info
which is return by_audio_ports::get
so in your example the plugin would return_audio_ports::count
-> 5_audio_ports::get(0..2)
-> return an info withinfo::channel_count == 2
_audio_ports::get(3..4)
-> return an info withinfo::channel_count == 1
process
has a member*audio_inputs
which is of typeclap_audio_buffer
. In this case a properly configured host would meet constraints likeprocess->audio_inputs[0]->channel_count = 2
and
process->audio_inputs[3]->channel_count = 1
similarly the
**data32
member ofaudio_inputs[0]
would ha…