diff options
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, |