-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configurable audio ports support #65
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, format the code according to the clang-format style in the repository.
///////////////////////////// | ||
template<MisbehaviourHandler h, CheckingLevel l> | ||
bool PluginProxy<h, l>::canUseConfigurableAudioPorts() const noexcept { | ||
if(!_pluginConfigurableAudioPorts) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have to check that the methods aren't null pointers as well.
|
||
template<MisbehaviourHandler h, CheckingLevel l> | ||
bool PluginProxy<h, l>::configurableAudioPortsCanApplyConfiguration(clap_audio_port_configuration_request *requests, uint32_t requests_count) const noexcept { | ||
if(!_pluginConfigurableAudioPorts) return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should call canUseConfigurableAudioPorts()
here.
|
||
template<MisbehaviourHandler h, CheckingLevel l> | ||
bool PluginProxy<h, l>::configurableAudioPortsApplyConfiguration(clap_audio_port_configuration_request *requests, uint32_t requests_count) const noexcept { | ||
if(!_pluginConfigurableAudioPorts) return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should call canUseConfigurableAudioPorts()
here.
Was discussing this with Timo in the discord, and figured I'd try and add the configurable audio ports extension stuff into the helpers - I'm a bit shaky on the proxy stuff, so any sanity checking here would be super appreciated, obviously let me know if I've missed anything super obvious!