Skip to content

Confused by audio ports #169

Answered by baconpaul
sagantech asked this question in Q&A
Sep 13, 2022 · 1 comments · 12 replies
Discussion options

You must be logged in to vote

clap_plugin_audio_ports has a count method which says how many ports you have. Each port has a bus configuration which is described by the clap_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 with info::channel_count == 2

_audio_ports::get(3..4) -> return an info with info::channel_count == 1

process has a member *audio_inputs which is of type clap_audio_buffer. In this case a properly configured host would meet constraints like

process->audio_inputs[0]->channel_count = 2

and

process->audio_inputs[3]->channel_count = 1

similarly the **data32 member of audio_inputs[0] would ha…

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@baconpaul
Comment options

@sagantech
Comment options

@sagantech
Comment options

@baconpaul
Comment options

@sagantech
Comment options

Answer selected by sagantech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants