summaryrefslogtreecommitdiff
path: root/src/modules/plato
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-01-15 17:10:04 -0800
committerVito Caputo <vcaputo@pengaru.com>2023-01-21 12:51:53 -0800
commiteb19473f1a5dd412f945a4526cb7834113defa44 (patch)
tree51fb0e12584b7f56e3121b7a749997f59b715b4e /src/modules/plato
parent68347e96bbac8c60b32895c5214487f58990fea3 (diff)
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.
Diffstat (limited to 'src/modules/plato')
-rw-r--r--src/modules/plato/plato.c4
1 files changed, 2 insertions, 2 deletions
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);
© All Rights Reserved