wined3d: Fix pshader_glsl_tex() and pshader_glsl_texcoord().
[wine] / dlls / winearts.drv / arts.c
1 /* -*- tab-width: 8; c-basic-offset: 4 -*- */
2 /*
3  * Wine Driver for aRts Sound Server
4  *   http://www.arts-project.org
5  *
6  * Copyright 2002 Chris Morgan<cmorgan@alum.wpi.edu>
7  * Code massively copied from Eric Pouech's OSS driver
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22  */
23
24 #include "config.h"
25
26 #include <stdarg.h>
27
28 #include "windef.h"
29 #include "winbase.h"
30 #include "wingdi.h"
31 #include "winuser.h"
32 #include "mmddk.h"
33 #include "arts.h"
34
35 #ifdef HAVE_ARTS
36
37 /**************************************************************************
38  *                              ARTS_drvOpen                    [internal]
39  */
40 static LRESULT ARTS_drvOpen(LPSTR str)
41 {
42     return 1;
43 }
44
45 /**************************************************************************
46  *                              ARTS_drvClose                   [internal]
47  */
48 static LRESULT ARTS_drvClose(DWORD_PTR dwDevID)
49 {
50     return 1;
51 }
52 #endif /* #ifdef HAVE_ARTS */
53
54
55 /**************************************************************************
56  *                              DriverProc (WINEARTS.@)
57  */
58 LRESULT CALLBACK ARTS_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
59                                  LPARAM dwParam1, LPARAM dwParam2)
60 {
61 /* EPP     TRACE("(%08lX, %04X, %08lX, %08lX, %08lX)\n",  */
62 /* EPP    dwDevID, hDriv, wMsg, dwParam1, dwParam2); */
63
64     switch(wMsg) {
65 #ifdef HAVE_ARTS
66     case DRV_LOAD:              if (ARTS_WaveInit()<0) return 0;
67                                 return 1;
68     case DRV_FREE:              return ARTS_WaveClose();
69     case DRV_OPEN:              return ARTS_drvOpen((LPSTR)dwParam1);
70     case DRV_CLOSE:             return ARTS_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, "aRts MultiMedia Driver!", "aRts 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);
80     }
81 }