From 29a62871a901a07faa7fb66f26d2d60c9273257b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 23 Feb 2012 20:07:29 +0000 Subject: Put atom size first. Fix doxygen stylesheet. --- plugins/eg-sampler.lv2/sampler.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins') diff --git a/plugins/eg-sampler.lv2/sampler.c b/plugins/eg-sampler.lv2/sampler.c index fd450c6..fdd5661 100644 --- a/plugins/eg-sampler.lv2/sampler.c +++ b/plugins/eg-sampler.lv2/sampler.c @@ -159,12 +159,11 @@ handle_set_message(Sampler* plugin, if (sample) { /* Loaded sample, send it to run() to be applied. */ const SampleMessage msg = { - { plugin->uris.eg_applySample, sizeof(sample) }, + { sizeof(sample), plugin->uris.eg_applySample }, sample }; - zix_ring_write(plugin->from_worker, - &msg, - lv2_atom_pad_size(sizeof(msg))); + zix_ring_write( + plugin->from_worker, &msg, lv2_atom_pad_size(sizeof(msg))); } return true; @@ -398,7 +397,7 @@ run(LV2_Handle instance, if (m.atom.type == uris->eg_applySample) { /* Send a message to the worker to free the current sample */ SampleMessage free_msg = { - { uris->eg_freeSample, sizeof(plugin->sample) }, + { sizeof(plugin->sample), uris->eg_freeSample }, plugin->sample }; zix_ring_write(plugin->to_worker, -- cgit v1.2.1