From aa1aed334e860ab5241683f77dfd0215664efe5e Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 13 Mar 2008 18:41:00 +0000 Subject: Display a warning message if use_libsamplerate != 0, but libsamplerate support is not compiled in. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1106 --- src/i_sdlsound.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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); -- cgit v1.2.3