From c8cde7fb3b7897ba068d7360a9da65054e227d02 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 26 Jul 2020 18:02:24 +0200 Subject: [PATCH] - stop sound in all paths of the ANM player. Fixes #36. --- source/core/screenjob.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/core/screenjob.cpp b/source/core/screenjob.cpp index ae41c9a61..bccd5d599 100644 --- a/source/core/screenjob.cpp +++ b/source/core/screenjob.cpp @@ -44,6 +44,7 @@ #include "animtexture.h" #include "gamestate.h" #include "menu.h" +#include "raze_sound.h" #include "movie/playmve.h" @@ -119,6 +120,7 @@ public: if (curframe > 4 && totalclock > frametime + 60) { Printf("WARNING: slowdown in video playback, aborting\n"); + soundEngine->StopAllChannels(); return -1; } @@ -126,6 +128,7 @@ public: { twod->ClearScreen(); DrawTexture(twod, animtex.GetFrame(), 0, 0, DTA_FullscreenEx, 3, DTA_Masked, false, TAG_DONE); + if (skiprequest) soundEngine->StopAllChannels(); return skiprequest? -1 : 1; }