From 580464d6bea3edbb30b9259dee88207c331f57b1 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 25 Jun 2021 14:23:55 +0900 Subject: [PATCH] [audio] Disable extra update for pull targets This fixes a segfault that snuck in due to testsound not using S_ExgraUpdate. --- libs/audio/renderer/snd_dma.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libs/audio/renderer/snd_dma.c b/libs/audio/renderer/snd_dma.c index 390e10524..e7cf2390a 100644 --- a/libs/audio/renderer/snd_dma.c +++ b/libs/audio/renderer/snd_dma.c @@ -230,9 +230,11 @@ s_update (const vec3_t origin, const vec3_t forward, const vec3_t right, static void s_extra_update (void) { - if (!sound_started || snd_noextraupdate->int_val) - return; // don't pollute timings - s_update_ (); + if (snd_output_data->model == som_push) { + if (!sound_started || snd_noextraupdate->int_val) + return; // don't pollute timings + s_update_ (); + } } static void