rpcrt4/tests: Replace || by |.
[wine/multimedia.git] / dlls / winmm / winealsa / alsa.c
blobeaaf75cb9f6ca09262bba83b73d42947a39e8ad2
1 /* -*- tab-width: 8; c-basic-offset: 4 -*- */
2 /*
3 * Wine Driver for ALSA
5 * Copyright 2002 Eric Pouech
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "config.h"
24 #include <stdarg.h>
26 #include "windef.h"
27 #include "winbase.h"
28 #include "wingdi.h"
29 #include "winuser.h"
30 #include "mmddk.h"
31 #include "alsa.h"
33 #ifdef HAVE_ALSA
35 /**************************************************************************
36 * ALSA_drvOpen [internal]
38 static LRESULT ALSA_drvOpen(LPSTR str)
40 return 1;
43 /**************************************************************************
44 * ALSA_drvClose [internal]
46 static LRESULT ALSA_drvClose(DWORD_PTR dwDevID)
48 return 1;
51 #endif
54 /**************************************************************************
55 * DriverProc (WINEALSA.@)
57 LRESULT CALLBACK ALSA_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
58 LPARAM dwParam1, LPARAM dwParam2)
60 /* EPP TRACE("(%08lX, %04X, %08lX, %08lX, %08lX)\n", */
61 /* EPP dwDevID, hDriv, wMsg, dwParam1, dwParam2); */
63 switch(wMsg) {
64 #ifdef HAVE_ALSA
65 case DRV_LOAD: ALSA_WaveInit();
66 ALSA_MidiInit();
67 return 1;
68 case DRV_FREE: return 1;
69 case DRV_OPEN: return ALSA_drvOpen((LPSTR)dwParam1);
70 case DRV_CLOSE: return ALSA_drvClose(dwDevID);
71 case DRV_ENABLE: return 1;
72 case DRV_DISABLE: return 1;
73 case DRV_QUERYCONFIGURE: return 1;
74 case DRV_CONFIGURE: MessageBoxA(0, "ALSA MultiMedia Driver !", "ALSA Driver", MB_OK); return 1;
75 case DRV_INSTALL: return DRVCNF_RESTART;
76 case DRV_REMOVE: return DRVCNF_RESTART;
77 #endif
78 default:
79 return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);