crypt32: Make a global copy of crypt32's HINSTANCE.
[wine/multimedia.git] / dlls / wineaudioio.drv / audioio.c
blobf7c9ee11a2a2fc3308faf66505248ad9aca48bd6
1 /* -*- tab-width: 8; c-basic-offset: 4 -*- */
2 /*
3 * Wine Driver for Libaudioio
4 * Derived From WineOSS
5 * Copyright 1999 Eric Pouech
6 * Modifications by Robert Lunnon 2002
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 #include "config.h"
25 #include <stdarg.h>
27 #include "windef.h"
28 #include "winbase.h"
29 #include "wingdi.h"
30 #include "winuser.h"
31 #include "mmddk.h"
33 #ifdef HAVE_LIBAUDIOIO
35 extern LONG LIBAUDIOIO_WaveInit(void);
37 /**************************************************************************
38 * LIBAUDIOIO_drvOpen [internal]
40 static LRESULT LIBAUDIOIO_drvOpen(LPSTR str)
42 return 1;
45 /**************************************************************************
46 * LIBAUDIOIO_drvClose [internal]
48 static LRESULT LIBAUDIOIO_drvClose(DWORD_PTR dwDevID)
50 return 1;
53 #endif
56 /**************************************************************************
57 * DriverProc
59 LRESULT CALLBACK LIBAUDIOIO_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_LIBAUDIOIO
67 case DRV_LOAD: LIBAUDIOIO_WaveInit();
68 return 1;
69 case DRV_FREE: return 1;
70 case DRV_OPEN: return LIBAUDIOIO_drvOpen((LPSTR)dwParam1);
71 case DRV_CLOSE: return LIBAUDIOIO_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, "Libaudioio MultiMedia Driver !", "Libaudioio 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);