summaryrefslogtreecommitdiffstats
path: root/libao2/ao_sdl.c
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-03-13 16:25:08 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-03-13 16:25:08 +0000
commitb3372bc0d0b5ea0bfa4c77c41850e483e97beb16 (patch)
tree20f42a332c037dfdc41a8f9faf0294818c2d06ec /libao2/ao_sdl.c
parent2aa6acd9747aec7f72ebea2addb9cdba98846d7a (diff)
downloadmpv-b3372bc0d0b5ea0bfa4c77c41850e483e97beb16.tar.bz2
mpv-b3372bc0d0b5ea0bfa4c77c41850e483e97beb16.tar.xz
fix compilation with sdl on mingw patch by Nehal <nehalmistry at gmx.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12020 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/ao_sdl.c')
-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;