Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MeijisIrlnd
Copy link

@MeijisIrlnd MeijisIrlnd commented Sep 14, 2024

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!

@CLAassistant
Copy link

CLAassistant commented Sep 14, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@abique abique left a 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) {
Copy link
Contributor

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;
Copy link
Contributor

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;
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants