shithub: choc

Download patch

ref: aa1aed334e860ab5241683f77dfd0215664efe5e
parent: de318a6f06dd24136a3d538a27ecef43a1bce1e5
author: Simon Howard <[email protected]>
date: Thu Mar 13 14:41:00 EDT 2008

Display a warning message if use_libsamplerate != 0, but libsamplerate
support is not compiled in.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1106

--- a/src/i_sdlsound.c
+++ b/src/i_sdlsound.c
@@ -620,6 +620,13 @@
 
         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);