Print the number of OpenAL sources in the backend

This commit is contained in:
Yamagi Burmeister 2013-04-20 09:30:52 +02:00
parent cbecc5b2dc
commit 0c93ecbddb
2 changed files with 3 additions and 8 deletions

View file

@ -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);
}
/*

View file

@ -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();