aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg-scope.lv2
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-26 15:00:50 +0100
committerDavid Robillard <d@drobilla.net>2020-12-26 17:55:23 +0100
commitc2816ab42b458c9c5202197b3df665340f57dddd (patch)
tree1d367483a854d7117920f95b943fb01424b77529 /plugins/eg-scope.lv2
parent64d4a4a46901b1b1ab4eaac4f3f57f8d353e42c5 (diff)
downloadlv2-c2816ab42b458c9c5202197b3df665340f57dddd.tar.xz
Add clang-format suppression comments
Diffstat (limited to 'plugins/eg-scope.lv2')
-rw-r--r--plugins/eg-scope.lv2/examploscope.c3
-rw-r--r--plugins/eg-scope.lv2/examploscope_ui.c6
2 files changed, 9 insertions, 0 deletions
diff --git a/plugins/eg-scope.lv2/examploscope.c b/plugins/eg-scope.lv2/examploscope.c
index af0e302..b767508 100644
--- a/plugins/eg-scope.lv2/examploscope.c
+++ b/plugins/eg-scope.lv2/examploscope.c
@@ -95,11 +95,14 @@ instantiate(const LV2_Descriptor* descriptor,
}
// Get host features
+ // clang-format off
const char* missing = lv2_features_query(
features,
LV2_LOG__log, &self->logger.log, false,
LV2_URID__map, &self->map, true,
NULL);
+ // clang-format on
+
lv2_log_logger_set_map(&self->logger, self->map);
if (missing) {
lv2_log_error(&self->logger, "Missing feature <%s>\n", missing);
diff --git a/plugins/eg-scope.lv2/examploscope_ui.c b/plugins/eg-scope.lv2/examploscope_ui.c
index 32584a4..e9e0c6f 100644
--- a/plugins/eg-scope.lv2/examploscope_ui.c
+++ b/plugins/eg-scope.lv2/examploscope_ui.c
@@ -559,11 +559,14 @@ recv_raw_audio(EgScopeUI* ui, const LV2_Atom_Object* obj)
{
const LV2_Atom* chan_val = NULL;
const LV2_Atom* data_val = NULL;
+
+ // clang-format off
const int n_props = lv2_atom_object_get(
obj,
ui->uris.channelID, &chan_val,
ui->uris.audioData, &data_val,
NULL);
+ // clang-format on
if (n_props != 2 ||
chan_val->type != ui->uris.atom_Int ||
@@ -598,12 +601,15 @@ recv_ui_state(EgScopeUI* ui, const LV2_Atom_Object* obj)
const LV2_Atom* spp_val = NULL;
const LV2_Atom* amp_val = NULL;
const LV2_Atom* rate_val = NULL;
+
+ // clang-format off
const int n_props = lv2_atom_object_get(
obj,
ui->uris.ui_spp, &spp_val,
ui->uris.ui_amp, &amp_val,
ui->uris.param_sampleRate, &rate_val,
NULL);
+ // clang-format on
if (n_props != 3 ||
spp_val->type != ui->uris.atom_Int ||