summaryrefslogtreecommitdiffstats
path: root/libao2
diff options
context:
space:
mode:
Diffstat (limited to 'libao2')
-rw-r--r--libao2/ao_sdl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libao2/ao_sdl.c b/libao2/ao_sdl.c
index a461a7488c..7c9da50680 100644
--- a/libao2/ao_sdl.c
+++ b/libao2/ao_sdl.c
@@ -34,7 +34,11 @@ static ao_info_t info =
LIBAO_EXTERN(sdl)
// Samplesize used by the SDLlib AudioSpec struct
+#ifdef WIN32
+#define SAMPLESIZE 2048
+#else
#define SAMPLESIZE 1024
+#endif
// General purpose Ring-buffering routines
@@ -95,8 +99,8 @@ static int read_buffer(unsigned char* data,int len){
// end ring buffer stuff
-#if defined(HPUX) || defined(sgi) || (defined(sun) && defined(__svr4__))
-/* setenv is missing on solaris, IRIX and HPUX */
+#if defined(WIN32) || defined(HPUX) || defined(sgi) || (defined(sun) && defined(__svr4__))
+/* setenv is missing on win32, solaris, IRIX and HPUX */
static void setenv(const char *name, const char *val, int _xx)
{
int len = strlen(name) + strlen(val) + 2;