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
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:
parent
2a7820d2e4
commit
03c4c4af90
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user