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.
This commit is contained in:
1 parent
2a7820d2e4
commit
03c4c4af90
1 file changed
+12
@@ -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 ; 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
|
||||
|
||||
Reference in new issue
Block a user