summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-11-17 17:12:09 -0800
committerVito Caputo <vcaputo@pengaru.com>2023-11-17 17:12:09 -0800
commitf15e1ada07a08a6dd13dcf648e815f2c9620ce6e (patch)
tree792e1e68e1ab6c0d3240f3ed9034559d16e3681d /src/modules
parentcf0905da52e8c1d8ac461b9b8cc817be48d5ec99 (diff)
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.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/rkt/rkt.c4
1 files changed, 3 insertions, 1 deletions
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.
© All Rights Reserved