diff options
author | Simon Howard | 2008-03-13 18:41:00 +0000 |
---|---|---|
committer | Simon Howard | 2008-03-13 18:41:00 +0000 |
commit | aa1aed334e860ab5241683f77dfd0215664efe5e (patch) | |
tree | 4b213c2e8270d2681d4db51544fb96c35a39a5f4 | |
parent | de318a6f06dd24136a3d538a27ecef43a1bce1e5 (diff) | |
download | chocolate-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
-rw-r--r-- | src/i_sdlsound.c | 7 |
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); |