diff options
author | David Robillard <d@drobilla.net> | 2012-02-23 20:07:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-02-23 20:07:29 +0000 |
commit | 29a62871a901a07faa7fb66f26d2d60c9273257b (patch) | |
tree | 16632ffa829a6cc385dd5bad7b5a6c6fec0c6a95 /plugins | |
parent | c2cc2607f8d5b9eea933a18abd91b2ce708fc90c (diff) | |
download | lv2-29a62871a901a07faa7fb66f26d2d60c9273257b.tar.xz |
Put atom size first.
Fix doxygen stylesheet.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/eg-sampler.lv2/sampler.c | 9 |
1 files changed, 4 insertions, 5 deletions
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, |