From f15e1ada07a08a6dd13dcf648e815f2c9620ce6e Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 17 Nov 2023 17:12:09 -0800 Subject: modules/rkt: pause audio too on no scene/end pause There's already a pause triggered here, but the audio wasn't getting paused as well. --- src/modules/rkt/rkt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/rkt/rkt.c b/src/modules/rkt/rkt.c index f5221f4..e1a38e7 100644 --- a/src/modules/rkt/rkt.c +++ b/src/modules/rkt/rkt.c @@ -357,8 +357,10 @@ static void rkt_render_fragment(til_module_context_t *context, til_stream_t *str ((rkt_setup_t *)context->setup)->connect ? (ctxt->connected ? "ONLINE" : "OFFLINE") : "PLAYER", ctxt->scener ? "SCENER" : "NOSCENER"); - if (scene != ctxt->last_scene) + if (scene != ctxt->last_scene) { ctxt->paused = 1; + til_audio_pause(ctxt->audio_context); + } /* TODO: creating/destroying this every frame is dumb, but * as this is a diagnostic it's not so important. -- cgit v1.2.3