aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg-scope.lv2
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/eg-scope.lv2')
-rw-r--r--plugins/eg-scope.lv2/examploscope.c4
-rw-r--r--plugins/eg-scope.lv2/examploscope_ui.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/eg-scope.lv2/examploscope.c b/plugins/eg-scope.lv2/examploscope.c
index e175804..af0e302 100644
--- a/plugins/eg-scope.lv2/examploscope.c
+++ b/plugins/eg-scope.lv2/examploscope.c
@@ -124,7 +124,7 @@ instantiate(const LV2_Descriptor* descriptor,
// Set default UI settings
self->ui_spp = 50;
- self->ui_amp = 1.0;
+ self->ui_amp = 1.0f;
// Map URIs and initialise forge/logger
map_sco_uris(self->map, &self->uris);
@@ -252,7 +252,7 @@ run(LV2_Handle handle, uint32_t n_samples)
lv2_atom_forge_key(&self->forge, self->uris.ui_amp);
lv2_atom_forge_float(&self->forge, self->ui_amp);
lv2_atom_forge_key(&self->forge, self->uris.param_sampleRate);
- lv2_atom_forge_float(&self->forge, self->rate);
+ lv2_atom_forge_float(&self->forge, (float)self->rate);
lv2_atom_forge_pop(&self->forge, &frame);
}
diff --git a/plugins/eg-scope.lv2/examploscope_ui.c b/plugins/eg-scope.lv2/examploscope_ui.c
index 5e244af..48ffec4 100644
--- a/plugins/eg-scope.lv2/examploscope_ui.c
+++ b/plugins/eg-scope.lv2/examploscope_ui.c
@@ -353,8 +353,8 @@ process_channel(EgScopeUI* ui,
if (chn->idx == 0) {
++overflow;
}
- chn->data_min[chn->idx] = 1.0;
- chn->data_max[chn->idx] = -1.0;
+ chn->data_min[chn->idx] = 1.0f;
+ chn->data_max[chn->idx] = -1.0f;
}
}
*idx_end = chn->idx;