mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-16 17:11:03 +00:00
Print the number of OpenAL sources in the backend
This commit is contained in:
parent
cbecc5b2dc
commit
0c93ecbddb
2 changed files with 3 additions and 8 deletions
|
@ -42,6 +42,7 @@
|
|||
#endif
|
||||
|
||||
#include "../../common/header/common.h"
|
||||
#include "../../client/sound/header/local.h"
|
||||
#include "header/qal.h"
|
||||
|
||||
static ALCcontext *context;
|
||||
|
@ -203,6 +204,8 @@ void QAL_SoundInfo()
|
|||
Com_Printf("- %s\n", devs);
|
||||
}
|
||||
}
|
||||
|
||||
Com_Printf("\nNumber of sources: %d\n", s_numchannels);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -94,7 +94,6 @@ S_SoundInfo_f(void)
|
|||
if (sound_started == SS_OAL)
|
||||
{
|
||||
QAL_SoundInfo();
|
||||
Com_Printf("\nNumber of sources: %d\n", s_numchannels);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
@ -166,14 +165,7 @@ S_Init(void)
|
|||
soundtime = 0;
|
||||
paintedtime = 0;
|
||||
|
||||
#if USE_OPENAL
|
||||
if (sound_started == SS_DMA)
|
||||
{
|
||||
Com_Printf("Sound sampling rate: %i\n", dma.speed);
|
||||
}
|
||||
#else
|
||||
Com_Printf("Sound sampling rate: %i\n", dma.speed);
|
||||
#endif
|
||||
|
||||
S_StopAllSounds();
|
||||
|
||||
|
|
Loading…
Reference in a new issue