SDL_mixer: do not report a non-playing channel as paused

From 28df9cbf87b3be398ebf07b18edb9f638cb8afb9 Mon Sep 17 00:00:00 2001
From: pionere <[EMAIL REDACTED]>
Date: Tue, 14 Dec 2021 10:01:02 +0100
Subject: [PATCH] do not report a non-playing channel as paused

---
 src/mixer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mixer.c b/src/mixer.c
index 2ee0cf61..ab11c57d 100644
--- a/src/mixer.c
+++ b/src/mixer.c
@@ -1317,13 +1317,13 @@ int Mix_Paused(int which)
         int status = 0;
         int i;
         for(i=0; i < num_channels; ++i) {
-            if (mix_channel[i].paused) {
+            if (Mix_Playing(i) && mix_channel[i].paused) {
                 ++ status;
             }
         }
         return(status);
     } else if (which < num_channels) {
-        return(mix_channel[which].paused != 0);
+        return(Mix_Playing(which) && mix_channel[which].paused != 0);
     } else {
         return(0);
     }