diff --git a/tests/clap-first-example/distortion_clap.cpp b/tests/clap-first-example/distortion_clap.cpp index 1f7e2d34..4e5e2dec 100644 --- a/tests/clap-first-example/distortion_clap.cpp +++ b/tests/clap-first-example/distortion_clap.cpp @@ -12,6 +12,8 @@ #include #include +static const char *features[] = {CLAP_PLUGIN_FEATURE_AUDIO_EFFECT, CLAP_PLUGIN_FEATURE_STEREO, CLAP_PLUGIN_FEATURE_DISTORTION, nullptr}; + static const clap_plugin_descriptor_t s_c99dist_desc = { CLAP_VERSION_INIT, "org.free-audio.clap-first-bad-distortion", @@ -22,7 +24,7 @@ static const clap_plugin_descriptor_t s_c99dist_desc = { "", "1.0.0", "A few sloppy distortion algorithms using naive waveshapers", - (const char *[]){CLAP_PLUGIN_FEATURE_AUDIO_EFFECT, CLAP_PLUGIN_FEATURE_STEREO, NULL}, + &features[0] }; enum ClipType