fix: s_list command with s_useOpenAL 1 (#844)
Some checks failed
Build / Extract Version (push) Has been cancelled
Build / Linux (USE_INTERNAL_LIBS OFF) (push) Has been cancelled
Build / Linux 32-bit (push) Has been cancelled
Build / FreeBSD (push) Has been cancelled
Build / OpenBSD (push) Has been cancelled
Build / Linux (push) Has been cancelled
Build / Windows MSVC (push) Has been cancelled
Build / Windows MinGW (push) Has been cancelled
Build / macOS (push) Has been cancelled
Build / Emscripten (push) Has been cancelled
Build / Check For Release Tag (push) Has been cancelled
Build / Release (push) Has been cancelled

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.
This commit is contained in:
WofWca 2025-12-04 14:16:06 +04:00 committed by GitHub
parent 2a7820d2e4
commit 03c4c4af90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2365,6 +2365,18 @@ S_AL_SoundList
static static
void S_AL_SoundList( void ) void S_AL_SoundList( void )
{ {
int i;
alSfx_t *sfx;
int size, total;
total = 0;
for (sfx=knownSfx, i=0 ; i<numSfx ; i++, sfx++) {
size = sfx->info.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 #ifdef USE_VOIP