From eb19473f1a5dd412f945a4526cb7834113defa44 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 15 Jan 2023 17:10:04 -0800 Subject: til_stream: add a second void* to til_stream_pipe_t It seems likely that pipe owners will need not only a way to differentiate themselves via the owner pointer, but also somewhere to register a pipe-specific reference. There probably needs to be a result pointer added for storing the owner_foo when the owner taps, so the owner can make use of it. --- src/modules/plato/plato.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/plato/plato.c') diff --git a/src/modules/plato/plato.c b/src/modules/plato/plato.c index 259d5b0..f952674 100644 --- a/src/modules/plato/plato.c +++ b/src/modules/plato/plato.c @@ -653,8 +653,8 @@ static void plato_render_fragment(til_module_context_t *context, til_stream_t *s til_fb_fragment_t *fragment = *fragment_ptr; /* since we don't automate the rates ourselves, we don't care about the tap return values */ - (void) til_stream_tap_context(stream, context, &ctxt->taps.orbit_rate); - (void) til_stream_tap_context(stream, context, &ctxt->taps.spin_rate); + (void) til_stream_tap_context(stream, context, NULL, &ctxt->taps.orbit_rate); + (void) til_stream_tap_context(stream, context, NULL, &ctxt->taps.spin_rate); ctxt->r += (float)(ticks - context->ticks) * (*ctxt->orbit_rate * .001f); ctxt->rr += (float)(ticks - context->ticks) * (*ctxt->spin_rate * .001f); -- cgit v1.2.1