From 03c4c4af902b0141e7fa37f9a558bc638bbe0d16 Mon Sep 17 00:00:00 2001 From: WofWca Date: Thu, 4 Dec 2025 14:16:06 +0400 Subject: [PATCH] fix: `s_list` command with `s_useOpenAL 1` (#844) The code is pretty much copy-pasted from `S_Base_SoundList`. Some things from the original `S_Base_SoundList` are not implemented, e.g. compression and the final "free memory" line. --- code/client/snd_openal.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/client/snd_openal.c b/code/client/snd_openal.c index eb0a69e5..d994798c 100644 --- a/code/client/snd_openal.c +++ b/code/client/snd_openal.c @@ -2365,6 +2365,18 @@ S_AL_SoundList static void S_AL_SoundList( void ) { + int i; + alSfx_t *sfx; + int size, total; + + total = 0; + for (sfx=knownSfx, i=0 ; iinfo.samples; + total += size; + Com_Printf("%6i : %s[%s]\n", size, + sfx->filename, sfx->inMemory ? "resident " : "paged out"); + } + Com_Printf ("Total resident: %i\n", total); } #ifdef USE_VOIP