shithub: choc

Download patch

ref: 88e70502930e07626526750e0d3230cc2d1260f7
parent: 53fa6c27c20f3abd7f290a39a97bfb9bae452b2d
author: Simon Howard <fraggle@gmail.com>
date: Tue Feb 12 16:29:58 EST 2008

Add use_libsamplerate variable to setup.

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

--- a/setup/configfile.c
+++ b/setup/configfile.c
@@ -281,6 +281,7 @@
     {"mouseb_straferight",          &mousebstraferight, DEFAULT_INT, 0, 0},
     {"mouseb_use",                  &mousebuse, DEFAULT_INT, 0, 0},
     {"mouseb_backward",             &mousebbackward, DEFAULT_INT, 0, 0},
+    {"use_libsamplerate",           &use_libsamplerate, DEFAULT_INT, 0, 0},
 };
 
 static default_collection_t extra_defaults =
--- a/setup/sound.c
+++ b/setup/sound.c
@@ -74,6 +74,8 @@
 
 int snd_samplerate = 22050;
 
+int use_libsamplerate = 0;
+
 static int snd_sfxmode;
 static int snd_musicenabled;
 
--- a/setup/sound.h
+++ b/setup/sound.h
@@ -31,6 +31,8 @@
 
 extern int snd_samplerate;
 
+extern int use_libsamplerate;
+
 void ConfigSound(void);
 
 #endif /* #ifndef SETUP_SOUND_H */