Skip to content

Commit 06b1516

Browse files
WofWcatomkidd
authored andcommitted
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.
1 parent f37189d commit 06b1516

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

code/client/snd_openal.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2365,6 +2365,18 @@ S_AL_SoundList
23652365
static
23662366
void S_AL_SoundList( void )
23672367
{
2368+
int i;
2369+
alSfx_t *sfx;
2370+
int size, total;
2371+
2372+
total = 0;
2373+
for (sfx=knownSfx, i=0 ; i<numSfx ; i++, sfx++) {
2374+
size = sfx->info.samples;
2375+
total += size;
2376+
Com_Printf("%6i : %s[%s]\n", size,
2377+
sfx->filename, sfx->inMemory ? "resident " : "paged out");
2378+
}
2379+
Com_Printf ("Total resident: %i\n", total);
23682380
}
23692381

23702382
#ifdef USE_VOIP

0 commit comments

Comments
 (0)