summaryrefslogtreecommitdiff
path: root/pcsound/pcsound.c
diff options
context:
space:
mode:
authorSimon Howard2007-06-17 18:40:02 +0000
committerSimon Howard2007-06-17 18:40:02 +0000
commitbeab4eb58b667a5883166bd1dd7bc33369a005c7 (patch)
treea6574cd329b3caea7a600ec6ce9184cc79ffb494 /pcsound/pcsound.c
parent5fc7913741e9f722e31735baea10f635fc18acce (diff)
downloadchocolate-doom-beab4eb58b667a5883166bd1dd7bc33369a005c7.tar.gz
chocolate-doom-beab4eb58b667a5883166bd1dd7bc33369a005c7.tar.bz2
chocolate-doom-beab4eb58b667a5883166bd1dd7bc33369a005c7.zip
Split i_sound.c into i_sdlsound.c, i_sdlmusic.c, with generic "sound
driver" modules, one for PC speaker and one for digital output. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 913
Diffstat (limited to 'pcsound/pcsound.c')
-rw-r--r--pcsound/pcsound.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pcsound/pcsound.c b/pcsound/pcsound.c
index 1491ff61..8c739b35 100644
--- a/pcsound/pcsound.c
+++ b/pcsound/pcsound.c
@@ -29,6 +29,7 @@
#include "config.h"
#include "pcsound.h"
+#include "pcsound_internal.h"
#ifdef _WIN32
extern pcsound_driver_t pcsound_win32_driver;
@@ -54,6 +55,13 @@ static pcsound_driver_t *drivers[] =
static pcsound_driver_t *pcsound_driver = NULL;
+int pcsound_sample_rate;
+
+void PCSound_SetSampleRate(int rate)
+{
+ pcsound_sample_rate = rate;
+}
+
int PCSound_Init(pcsound_callback_func callback_func)
{
char *driver_name;