xinput1_3: Quiet a noisy fixme.
[wine] / dlls / wineoss.drv / oss.c
1 /* -*- tab-width: 8; c-basic-offset: 4 -*- */
2 /*
3  * Wine Driver for Open Sound System
4  *
5  * Copyright    1999 Eric Pouech
6  *
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.
11  *
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.
16  *
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
20  */
21
22 #include "config.h"
23
24 #include <stdarg.h>
25
26 #include "windef.h"
27 #include "winbase.h"
28 #include "wingdi.h"
29 #include "winuser.h"
30 #include "mmddk.h"
31 #include "oss.h"
32 #include "wine/debug.h"
33
34 WINE_DEFAULT_DEBUG_CHANNEL(wave);
35
36 /**************************************************************************
37  *                              DriverProc (WINEOSS.1)
38  */
39 LRESULT CALLBACK OSS_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
40                                 LPARAM dwParam1, LPARAM dwParam2)
41 {
42      TRACE("(%08lX, %p, %08X, %08lX, %08lX)\n",
43            dwDevID, hDriv, wMsg, dwParam1, dwParam2);
44
45     switch(wMsg) {
46 #ifdef HAVE_OSS
47     case DRV_LOAD:
48     case DRV_FREE:
49     case DRV_OPEN:
50     case DRV_CLOSE:
51     case DRV_ENABLE:
52     case DRV_DISABLE:
53     case DRV_QUERYCONFIGURE:
54         return 1;
55     case DRV_CONFIGURE:         MessageBoxA(0, "OSS MultiMedia Driver !", "OSS Driver", MB_OK); return 1;
56     case DRV_INSTALL:
57     case DRV_REMOVE:
58         return DRV_SUCCESS;
59 #endif
60     default:
61         return 0;
62     }
63 }