Commit de32203b authored by Gildas Bazin's avatar Gildas Bazin

* Win32 compilation fixes (mingw includes dirent)
* configure now checks for ddraw.h and not directx.h
* vout_directx doesn't include directx.h anymore (this file isn't part of
    the directx sdk)
* moved all the stuff from aout_waveout.c directly into waveout.c (I don't
    know what I was thinking about when I created these two files ;-)
* until we fix the audio buffer underrun problem, waveout will be the
    default audio output on win32 (instead of directx).
parent 48cbd8f3
...@@ -7238,7 +7238,7 @@ fi ...@@ -7238,7 +7238,7 @@ fi
if test "x$with_directx_path" = "x" if test "x$with_directx_path" = "x"
then then
for ac_hdr in directx.h for ac_hdr in ddraw.h
do do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
...@@ -7282,7 +7282,7 @@ done ...@@ -7282,7 +7282,7 @@ done
else else
echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
echo "configure:7285: checking for directX headers in ${withval}" >&5 echo "configure:7285: checking for directX headers in ${withval}" >&5
if test -f ${withval}/include/directx.h if test -f ${withval}/include/ddraw.h
then then
PLUGINS="${PLUGINS} directx" PLUGINS="${PLUGINS} directx"
LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32" LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
......
...@@ -1178,12 +1178,12 @@ then ...@@ -1178,12 +1178,12 @@ then
[ --with-directx-path=path Win32 DirectX headers and libraries]) [ --with-directx-path=path Win32 DirectX headers and libraries])
if test "x$with_directx_path" = "x" if test "x$with_directx_path" = "x"
then then
AC_CHECK_HEADERS(directx.h, AC_CHECK_HEADERS(ddraw.h,
[ PLUGINS="${PLUGINS} directx" [ PLUGINS="${PLUGINS} directx"
LIB_DIRECTX="${LIB_DIRECTX} -lgdi32" ]) LIB_DIRECTX="${LIB_DIRECTX} -lgdi32" ])
else else
AC_MSG_CHECKING(for directX headers in ${withval}) AC_MSG_CHECKING(for directX headers in ${withval})
if test -f ${withval}/include/directx.h if test -f ${withval}/include/ddraw.h
then then
PLUGINS="${PLUGINS} directx" PLUGINS="${PLUGINS} directx"
LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32" LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* aout_directx.c: Windows DirectX audio output method * aout_directx.c: Windows DirectX audio output method
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: aout_directx.c,v 1.17 2002/02/15 13:32:53 sam Exp $ * $Id: aout_directx.c,v 1.18 2002/02/15 20:02:21 gbazin Exp $
* *
* Authors: Gildas Bazin <gbazin@netcourrier.com> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* *
...@@ -33,11 +33,8 @@ ...@@ -33,11 +33,8 @@
#include <videolan/vlc.h> #include <videolan/vlc.h>
#if defined( _MSC_VER ) #include <mmsystem.h>
# include <dsound.h> #include <dsound.h>
#else
# include <directx.h>
#endif
#include "audio_output.h" /* aout_thread_t */ #include "audio_output.h" /* aout_thread_t */
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vout_directx.c: Windows DirectX video output display method * vout_directx.c: Windows DirectX video output display method
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: vout_directx.c,v 1.21 2002/02/15 13:32:53 sam Exp $ * $Id: vout_directx.c,v 1.22 2002/02/15 20:02:21 gbazin Exp $
* *
* Authors: Gildas Bazin <gbazin@netcourrier.com> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* *
...@@ -45,9 +45,6 @@ ...@@ -45,9 +45,6 @@
#include <videolan/vlc.h> #include <videolan/vlc.h>
#include <windows.h>
#include <windowsx.h>
#include <ddraw.h> #include <ddraw.h>
#include "netutils.h" #include "netutils.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk_playlist.c : Interface for the playlist dialog * gtk_playlist.c : Interface for the playlist dialog
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: gtk_playlist.c,v 1.29 2002/02/15 13:32:53 sam Exp $ * $Id: gtk_playlist.c,v 1.30 2002/02/15 20:02:21 gbazin Exp $
* *
* Authors: Pierre Baillet <oct@zoy.org> * Authors: Pierre Baillet <oct@zoy.org>
* Stphane Borel <stef@via.ecp.fr> * Stphane Borel <stef@via.ecp.fr>
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
#include <sys/types.h> /* for readdir and stat stuff */ #include <sys/types.h> /* for readdir and stat stuff */
#if !defined( WIN32 ) #if (!defined( WIN32 ) || defined(__MINGW32__))
/* Mingw has its own version of dirent */
# include <dirent.h> # include <dirent.h>
#endif #endif
......
win32_SRC = win32.cpp win32_SRC = win32.cpp
waveout_SOURCES = waveout.c aout_waveout.c waveout_SOURCES = waveout.c
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment