aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix/sdl_snd.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-24 01:26:51 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-24 01:26:51 +0000
commitfbe63afdd0785b5a5813453800a581c166112328 (patch)
tree1ea6e81feef4917b379a9b7ac0d33fb02f381482 /code/unix/sdl_snd.c
parent4bfc084c4974ecff94e273a7608ebc38f1c046ab (diff)
downloadioquake3-aero-fbe63afdd0785b5a5813453800a581c166112328.tar.gz
ioquake3-aero-fbe63afdd0785b5a5813453800a581c166112328.zip
* Removed the redundant "sound system is muted" message
* Moved printing of desired audiospec to before SDL_OpenAudio * When the computed value for samples is not a power of 2, now pick the smallest power of 2 greater rather than the largest power of 2 smaller git-svn-id: svn://svn.icculus.org/quake3/trunk@102 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix/sdl_snd.c')
-rw-r--r--code/unix/sdl_snd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/unix/sdl_snd.c b/code/unix/sdl_snd.c
index 39fc933..fe68505 100644
--- a/code/unix/sdl_snd.c
+++ b/code/unix/sdl_snd.c
@@ -213,6 +213,8 @@ qboolean SNDDMA_Init(void)
desired.channels = (int) sndchannels->value;
desired.callback = sdl_audio_callback;
+ print_audiospec("Format we requested from SDL audio device", &desired);
+
if (SDL_OpenAudio(&desired, &obtained) == -1)
{
Com_Printf("SDL_OpenAudio() failed: %s\n", SDL_GetError());
@@ -220,7 +222,6 @@ qboolean SNDDMA_Init(void)
return qfalse;
} // if
- print_audiospec("Format we requested from SDL audio device", &desired);
print_audiospec("Format we actually got", &obtained);
// dma.samples needs to be big, or id's mixer will just refuse to
@@ -240,7 +241,6 @@ qboolean SNDDMA_Init(void)
while (val < tmp)
val <<= 1;
- val >>= 1;
Com_Printf("WARNING: sdlmixsamps wasn't a power of two (%d),"
" so we made it one (%d).\n", tmp, val);
tmp = val;