From f19b7a8211590e73bc4ef739342e5c1a0755bc0d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 24 Jan 2014 20:31:27 +0000 Subject: Replace use of lv2_atom_forge_property_head with lv2_atom_forge_key. --- plugins/eg05-scope.lv2/examploscope.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/eg05-scope.lv2/examploscope.c') diff --git a/plugins/eg05-scope.lv2/examploscope.c b/plugins/eg05-scope.lv2/examploscope.c index 6c40887..b7fb2f3 100644 --- a/plugins/eg05-scope.lv2/examploscope.c +++ b/plugins/eg05-scope.lv2/examploscope.c @@ -190,11 +190,11 @@ tx_rawaudio(LV2_Atom_Forge* forge, lv2_atom_forge_object(forge, &frame, 0, uris->RawAudio); // Add integer 'channelID' property - lv2_atom_forge_property_head(forge, uris->channelID, 0); + lv2_atom_forge_key(forge, uris->channelID); lv2_atom_forge_int(forge, channel); // Add vector of floats 'audioData' property - lv2_atom_forge_property_head(forge, uris->audioData, 0); + lv2_atom_forge_key(forge, uris->audioData); lv2_atom_forge_vector( forge, sizeof(float), uris->atom_Float, n_samples, data); @@ -243,11 +243,11 @@ run(LV2_Handle handle, uint32_t n_samples) lv2_atom_forge_object(&self->forge, &frame, 0, self->uris.ui_State); // Add UI state as properties - lv2_atom_forge_property_head(&self->forge, self->uris.ui_spp, 0); + lv2_atom_forge_key(&self->forge, self->uris.ui_spp); lv2_atom_forge_int(&self->forge, self->ui_spp); - lv2_atom_forge_property_head(&self->forge, self->uris.ui_amp, 0); + lv2_atom_forge_key(&self->forge, self->uris.ui_amp); lv2_atom_forge_float(&self->forge, self->ui_amp); - lv2_atom_forge_property_head(&self->forge, self->uris.param_sampleRate, 0); + lv2_atom_forge_key(&self->forge, self->uris.param_sampleRate); lv2_atom_forge_float(&self->forge, self->rate); lv2_atom_forge_pop(&self->forge, &frame); } -- cgit v1.2.1