foxygit / doom Log in
commit aa1aed334e860ab5241683f77dfd0215664efe5e
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Thu Mar 13 18:41:00 2008 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Thu Mar 13 18:41:00 2008 +0000

    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(+)

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);