From 03808f9b9cc0dcdcd4a00ae2c3392073553f5346 Mon Sep 17 00:00:00 2001 From: DepressedTWM Date: Mon, 1 Jun 2026 10:14:13 -0400 Subject: [PATCH] al-util.h rework --- src/al-util.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/al-util.h b/src/al-util.h index 41a59db..7edceee 100644 --- a/src/al-util.h +++ b/src/al-util.h @@ -25,7 +25,6 @@ #include #include #include -#include #include "meow.h" namespace AL{ @@ -177,8 +176,7 @@ inline uint8_t formatSampleSize(int sdlFormat){ case SDL_AUDIO_S16BE : return 2; default : - crash("Unhandled sample format", Exception::MEOW, false); - assert(!"Unhandled sample format"); + crash(Exception::MEOW, "Unhandled sample format"); } return 0; @@ -197,8 +195,7 @@ inline ALenum chooseALFormat(int sampleSize, int channelCount){ case 2 : return AL_FORMAT_STEREO16; } default : - crash("Unhandled sample size / channel count", Exception::MEOW, false); - assert(!"Unhandled sample size / channel count"); + crash(Exception::MEOW, "Unhandled sample size / channel count"); } return 0;