mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 12:20:07 +00:00
wineesd.drv: Remove unnecessary ifdefs.
This commit is contained in:
parent
1644b25847
commit
6eea1119af
3
configure
vendored
3
configure
vendored
@ -10799,9 +10799,6 @@ if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
|
||||
|
||||
ESDLIBS="$ac_esd_libs"
|
||||
|
||||
|
||||
$as_echo "#define HAVE_ESD 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
fi
|
||||
|
@ -1470,8 +1470,7 @@ then
|
||||
AC_CHECK_HEADER(esd.h,
|
||||
[AC_CHECK_LIB(esd,esd_open_sound,
|
||||
[AC_SUBST(ESDINCL, "$ac_esd_incl")
|
||||
AC_SUBST(ESDLIBS, "$ac_esd_libs")
|
||||
AC_DEFINE(HAVE_ESD, 1, [Define if you have EsounD sound server])],,
|
||||
AC_SUBST(ESDLIBS, "$ac_esd_libs")],,
|
||||
[$ac_esd_libs])])
|
||||
CFLAGS="$save_CFLAGS"
|
||||
fi
|
||||
|
@ -4,7 +4,6 @@ EXTRAINCL = @ESDINCL@
|
||||
EXTRALIBS = @ESDLIBS@
|
||||
|
||||
C_SRCS = \
|
||||
audio.c \
|
||||
esound.c
|
||||
audio.c
|
||||
|
||||
@MAKE_DLL_RULES@
|
||||
|
@ -71,8 +71,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(wave);
|
||||
#include <sys/errno.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_ESD
|
||||
|
||||
#include <esd.h>
|
||||
|
||||
/* unless someone makes a wineserver kernel module, Unix pipes are faster than win32 events */
|
||||
@ -2100,26 +2098,25 @@ DWORD WINAPI ESD_widMessage(UINT wDevID, UINT wMsg, DWORD dwUser,
|
||||
return MMSYSERR_NOTSUPPORTED;
|
||||
}
|
||||
|
||||
#else /* !HAVE_ESD */
|
||||
|
||||
/**************************************************************************
|
||||
* wodMessage (WINEESD.@)
|
||||
* DriverProc (WINEESD.@)
|
||||
*/
|
||||
DWORD WINAPI ESD_wodMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
|
||||
DWORD_PTR dwParam1, DWORD_PTR dwParam2)
|
||||
LRESULT CALLBACK ESD_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
|
||||
LPARAM dwParam1, LPARAM dwParam2)
|
||||
{
|
||||
FIXME("(%u, %04X, %08X, %08lX, %08lX):stub\n", wDevID, wMsg, dwUser, dwParam1, dwParam2);
|
||||
return MMSYSERR_NOTENABLED;
|
||||
switch(wMsg) {
|
||||
case DRV_LOAD:
|
||||
case DRV_FREE:
|
||||
case DRV_OPEN:
|
||||
case DRV_CLOSE:
|
||||
case DRV_INSTALL:
|
||||
case DRV_REMOVE:
|
||||
case DRV_ENABLE:
|
||||
case DRV_DISABLE:
|
||||
case DRV_QUERYCONFIGURE:
|
||||
return 1;
|
||||
case DRV_CONFIGURE: MessageBoxA(0, "EsounD MultiMedia Driver!", "EsounD Driver", MB_OK); return 1;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* widMessage (WINEESD.6)
|
||||
*/
|
||||
DWORD WINAPI ESD_widMessage(UINT wDevID, UINT wMsg, DWORD dwUser,
|
||||
DWORD_PTR dwParam1, DWORD_PTR dwParam2)
|
||||
{
|
||||
FIXME("(%u, %04X, %08X, %08lX, %08lX):stub\n", wDevID, wMsg, dwUser, dwParam1, dwParam2);
|
||||
return MMSYSERR_NOTENABLED;
|
||||
}
|
||||
|
||||
#endif /* HAVE_ESD */
|
||||
|
@ -1,58 +0,0 @@
|
||||
/*
|
||||
* Wine Driver for EsounD Sound Server
|
||||
* http://www.tux.org/~ricdude/EsounD.html
|
||||
*
|
||||
* Copyright 2004 Zhangrong Huang <hzhr@users.sourceforge.net>
|
||||
*
|
||||
* Code massively copied from Eric Pouech's OSS driver
|
||||
* and Chris Morgan aRts driver
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "wingdi.h"
|
||||
#include "winuser.h"
|
||||
#include "mmddk.h"
|
||||
|
||||
/**************************************************************************
|
||||
* DriverProc (WINEESD.@)
|
||||
*/
|
||||
LRESULT CALLBACK ESD_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
|
||||
LPARAM dwParam1, LPARAM dwParam2)
|
||||
{
|
||||
switch(wMsg) {
|
||||
#ifdef HAVE_ESD
|
||||
case DRV_LOAD:
|
||||
case DRV_FREE:
|
||||
case DRV_OPEN:
|
||||
case DRV_CLOSE:
|
||||
case DRV_INSTALL:
|
||||
case DRV_REMOVE:
|
||||
case DRV_ENABLE:
|
||||
case DRV_DISABLE:
|
||||
case DRV_QUERYCONFIGURE:
|
||||
return 1;
|
||||
case DRV_CONFIGURE: MessageBoxA(0, "EsounD MultiMedia Driver!", "EsounD Driver", MB_OK); return 1;
|
||||
#endif
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
@ -104,9 +104,6 @@
|
||||
/* Define to 1 if you have the `epoll_create' function. */
|
||||
#undef HAVE_EPOLL_CREATE
|
||||
|
||||
/* Define if you have EsounD sound server */
|
||||
#undef HAVE_ESD
|
||||
|
||||
/* Define to 1 if you have the `ffs' function. */
|
||||
#undef HAVE_FFS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user