From 195c705a46e685f80aed65b9c75996e41f3b9f18 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Tue, 7 Dec 2021 21:41:11 -0800 Subject: [PATCH] Fix for channel allocation error --- BeefLibs/SDL2/src/SDLApp.bf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BeefLibs/SDL2/src/SDLApp.bf b/BeefLibs/SDL2/src/SDLApp.bf index cc95a8dd..90026bbd 100644 --- a/BeefLibs/SDL2/src/SDLApp.bf +++ b/BeefLibs/SDL2/src/SDLApp.bf @@ -192,7 +192,8 @@ namespace SDL2 return; int32 channel = SDLMixer.PlayChannel(-1, sound.mChunk, 0); - //SDLMixer.SetPanning() + if (channel < 0) + return; SDLMixer.Volume(channel, (int32)(volume * 128)); }