Release 940614
[wine] / misc / audio.c
1 /*
2  * Sample Wine Driver for Linux
3  *
4  * Copyright 1994 Martin Ayotte
5  */
6
7 static char Copyright[] = "Copyright  Martin Ayotte, 1994";
8
9 #include "stdio.h"
10 #include "windows.h"
11 #include "win.h"
12 #include "user.h"
13 #include "driver.h"
14 #include "mmsystem.h"
15
16
17 /**************************************************************************
18 *                               AUDIO_DriverProc                [sample driver]
19 */
20 LRESULT AUDIO_DriverProc(DWORD dwDevID, HDRVR hDriv, WORD wMsg, 
21                                                 DWORD dwParam1, DWORD dwParam2)
22 {
23         switch(wMsg) {
24                 case DRV_LOAD:
25                         return (LRESULT)1L;
26                 case DRV_FREE:
27                         return (LRESULT)1L;
28                 case DRV_OPEN:
29                         return (LRESULT)1L;
30                 case DRV_CLOSE:
31                         return (LRESULT)1L;
32                 case DRV_ENABLE:
33                         return (LRESULT)1L;
34                 case DRV_DISABLE:
35                         return (LRESULT)1L;
36                 case DRV_QUERYCONFIGURE:
37                         return (LRESULT)1L;
38                 case DRV_CONFIGURE:
39                         MessageBox((HWND)NULL, "Sample MultiMedia Linux Driver !", 
40                                                                 "MMLinux Driver", MB_OK);
41                         return (LRESULT)1L;
42                 case DRV_INSTALL:
43                         return (LRESULT)DRVCNF_RESTART;
44                 case DRV_REMOVE:
45                         return (LRESULT)DRVCNF_RESTART;
46                 default:
47                         return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);
48                 }
49 }
50
51 /**************************************************************************
52 *                               wodMessage                      [sample driver]
53 */
54 DWORD wodMessage(WORD wDevID, WORD wMsg, DWORD dwUser, 
55                                         DWORD dwParam1, DWORD dwParam2)
56 {
57 }
58
59 /**************************************************************************
60 *                               widMessage                      [sample driver]
61 */
62 DWORD widMessage(WORD wDevID, WORD wMsg, DWORD dwUser, 
63                                         DWORD dwParam1, DWORD dwParam2)
64 {
65 }
66
67 /**************************************************************************
68 *                               auxMessage                      [sample driver]
69 */
70 DWORD auxMessage(WORD wDevID, WORD wMsg, DWORD dwUser, 
71                                         DWORD dwParam1, DWORD dwParam2)
72 {
73 }
74
75 /**************************************************************************
76 *                               midMessage                      [sample driver]
77 */
78 DWORD midMessage(WORD wDevID, WORD wMsg, DWORD dwUser, 
79                                         DWORD dwParam1, DWORD dwParam2)
80 {
81 }
82
83 /**************************************************************************
84 *                               modMessage                      [sample driver]
85 */
86 DWORD modMessage(WORD wDevID, WORD wMsg, DWORD dwUser, 
87                                         DWORD dwParam1, DWORD dwParam2)
88 {
89 }
90
91
92 /*
93 BOOL DriverCallback(DWORD dwCallBack, UINT uFlags, HANDLE hDev, 
94                 WORD wMsg, DWORD dwUser, DWORD dwParam1, DWORD dwParam2);
95 */
96
97