configure: Get rid of the va_copy checks.
[wine/wine64.git] / dlls / wineesd.drv / esound.c
blobc3455f42020a66b379fae248c5aa9fbd5a6f1053
1 /*
2 * Wine Driver for EsounD Sound Server
3 * http://www.tux.org/~ricdude/EsounD.html
5 * Copyright 2004 Zhangrong Huang <hzhr@users.sourceforge.net>
7 * Code massively copied from Eric Pouech's OSS driver
8 * and Chris Morgan aRts driver
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
25 #include "config.h"
27 #include <stdarg.h>
29 #include "windef.h"
30 #include "winbase.h"
31 #include "wingdi.h"
32 #include "winuser.h"
33 #include "mmddk.h"
34 #include "esound.h"
36 #ifdef HAVE_ESD
38 /**************************************************************************
39 * ESD_drvOpen [internal]
41 static LRESULT ESD_drvOpen(LPSTR str)
43 return 1;
46 /**************************************************************************
47 * ESD_drvClose [internal]
49 static LRESULT ESD_drvClose(DWORD_PTR dwDevID)
51 return 1;
53 #endif /* #ifdef HAVE_ESD */
56 /**************************************************************************
57 * DriverProc (WINEESD.@)
59 LRESULT CALLBACK ESD_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
60 LPARAM dwParam1, LPARAM dwParam2)
62 /* EPP TRACE("(%08lX, %04X, %08lX, %08lX, %08lX)\n", */
63 /* EPP dwDevID, hDriv, wMsg, dwParam1, dwParam2); */
65 switch(wMsg) {
66 #ifdef HAVE_ESD
67 case DRV_LOAD: if (ESD_WaveInit()<0) return 0;
68 return 1;
69 case DRV_FREE: return ESD_WaveClose();
70 case DRV_OPEN: return ESD_drvOpen((LPSTR)dwParam1);
71 case DRV_CLOSE: return ESD_drvClose(dwDevID);
72 case DRV_ENABLE: return 1;
73 case DRV_DISABLE: return 1;
74 case DRV_QUERYCONFIGURE: return 1;
75 case DRV_CONFIGURE: MessageBoxA(0, "EsounD MultiMedia Driver!", "EsounD Driver", MB_OK); return 1;
76 case DRV_INSTALL: return DRVCNF_RESTART;
77 case DRV_REMOVE: return DRVCNF_RESTART;
78 #endif
79 default:
80 return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);