Skip to content

Commit

Permalink
get_data_size() / get_data() don't need channel parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Bremmers authored May 2, 2024
1 parent 415de4d commit 012f310
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions include/clap/ext/draft/midici-profiles.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,30 +57,18 @@ typedef struct clap_plugin_midici_profiles {

// Get number of bytes for profile specific data for the specified Inquiry Target.
// If result=0 there's no data available for this Inquiry Target.
// channel defines the destination:
// single-channel profiles: channel is 0..255
// multi-channel profiles: channel is 0..255
// group profiles: channel is 16 * group
// port profiles: channel is 0
// [main-thread]
uint32_t(CLAP_ABI *get_data_size)(const clap_plugin_t *plugin,
uint16_t port_index,
uint32_t profile_index,
byte_t channel,
uint8_t inquiry_target);

// Get profile specific data for the specified Inquiry Target.
// buffer must be large enough to contain the number of bytes returned by get_data_size().
// channel defines the destination:
// single-channel profiles: channel is 0..255
// multi-channel profiles: channel is 0..255
// group profiles: channel is 16 * group
// port profiles: channel is 0
// [main-thread]
bool(CLAP_ABI *get_data)(const clap_plugin_t *plugin,
uint16_t port_index,
uint32_t profile_index,
byte_t channel,
uint8_t inquiry_target,
const uint8_t *buffer);

Expand Down

0 comments on commit 012f310

Please sign in to comment.