summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2008-03-13 18:41:00 +0000
committerSimon Howard2008-03-13 18:41:00 +0000
commitaa1aed334e860ab5241683f77dfd0215664efe5e (patch)
tree4b213c2e8270d2681d4db51544fb96c35a39a5f4 /src
parentde318a6f06dd24136a3d538a27ecef43a1bce1e5 (diff)
downloadchocolate-doom-aa1aed334e860ab5241683f77dfd0215664efe5e.tar.gz
chocolate-doom-aa1aed334e860ab5241683f77dfd0215664efe5e.tar.bz2
chocolate-doom-aa1aed334e860ab5241683f77dfd0215664efe5e.zip
Display a warning message if use_libsamplerate != 0, but libsamplerate
support is not compiled in. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1106
Diffstat (limited to 'src')
-rw-r--r--src/i_sdlsound.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/i_sdlsound.c b/src/i_sdlsound.c
index a250cc36..8ce6cab0 100644
--- a/src/i_sdlsound.c
+++ b/src/i_sdlsound.c
@@ -620,6 +620,13 @@ static boolean I_SDL_InitSound(void)
I_PrecacheSounds();
}
+#else
+ if (use_libsamplerate)
+ {
+ fprintf(stderr, "I_SDL_InitSound: use_libsamplerate=%i, but "
+ "libsamplerate support not compiled in.\n",
+ use_libsamplerate);
+ }
#endif
Mix_AllocateChannels(NUM_CHANNELS);