Skip to content

Commit

Permalink
Clang format; rebase to next; check API as well as _gui
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Jun 11, 2024
1 parent 8559d8c commit 9435a6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wrapasauv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,8 @@ OSStatus WrapAsAUV2::GetPropertyInfo(AudioUnitPropertyID inID, AudioUnitScope in
break;

case kAudioUnitProperty_CocoaUI:
if (!_plugin->_ext._gui)
if (!_plugin->_ext._gui) return kAudioUnitErr_InvalidProperty;
if (!_plugin->_ext._gui->is_api_supported(_plugin->_plugin, CLAP_WINDOW_API_COCOA, false))
return kAudioUnitErr_InvalidProperty;
outWritable = false;
outDataSize = sizeof(struct AudioUnitCocoaViewInfo);
Expand Down

0 comments on commit 9435a6b

Please sign in to comment.