Added LGPL standard comment, and copyright notices where necessary.
[wine] / dlls / winmm / sound16.c
1 /*
2  * 16-bit sound support
3  *
4  *  Copyright  Robert J. Amstadt, 1993
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #include <stdlib.h>
22 #include "windef.h"
23 #include "wine/windef16.h"
24 #include "wine/debug.h"
25
26 WINE_DEFAULT_DEBUG_CHANNEL(sound);
27
28 /***********************************************************************
29  *              OpenSound (SOUND.1)
30  */
31 INT16 WINAPI OpenSound16(void)
32 {
33   FIXME("(void): stub\n");
34   return -1;
35 }
36
37 /***********************************************************************
38  *              CloseSound (SOUND.2)
39  */
40 void WINAPI CloseSound16(void)
41 {
42   FIXME("(void): stub\n");
43 }
44
45 /***********************************************************************
46  *              SetVoiceQueueSize (SOUND.3)
47  */
48 INT16 WINAPI SetVoiceQueueSize16(INT16 nVoice, INT16 nBytes)
49 {
50   FIXME("(%d,%d): stub\n",nVoice,nBytes);
51   return 0;
52 }
53
54 /***********************************************************************
55  *              SetVoiceNote (SOUND.4)
56  */
57 INT16 WINAPI SetVoiceNote16(INT16 nVoice, INT16 nValue, INT16 nLength,
58                             INT16 nCdots)
59 {
60   FIXME("(%d,%d,%d,%d): stub\n",nVoice,nValue,nLength,nCdots);
61   return 0;
62 }
63
64 /***********************************************************************
65  *              SetVoiceAccent (SOUND.5)
66  */
67 INT16 WINAPI SetVoiceAccent16(INT16 nVoice, INT16 nTempo, INT16 nVolume,
68                               INT16 nMode, INT16 nPitch)
69 {
70   FIXME("(%d,%d,%d,%d,%d): stub\n", nVoice, nTempo, 
71         nVolume, nMode, nPitch);
72   return 0;
73 }
74
75 /***********************************************************************
76  *              SetVoiceEnvelope (SOUND.6)
77  */
78 INT16 WINAPI SetVoiceEnvelope16(INT16 nVoice, INT16 nShape, INT16 nRepeat)
79 {
80   FIXME("(%d,%d,%d): stub\n",nVoice,nShape,nRepeat);
81   return 0;
82 }
83
84 /***********************************************************************
85  *              SetSoundNoise (SOUND.7)
86  */
87 INT16 WINAPI SetSoundNoise16(INT16 nSource, INT16 nDuration)
88 {
89   FIXME("(%d,%d): stub\n",nSource,nDuration);
90   return 0;
91 }
92
93 /***********************************************************************
94  *              SetVoiceSound (SOUND.8)
95  */
96 INT16 WINAPI SetVoiceSound16(INT16 nVoice, DWORD lFrequency, INT16 nDuration)
97 {
98   FIXME("(%d, %ld, %d): stub\n",nVoice,lFrequency, nDuration);
99   return 0;
100 }
101
102 /***********************************************************************
103  *              StartSound (SOUND.9)
104  */
105 INT16 WINAPI StartSound16(void)
106 {
107   return 0;
108 }
109
110 /***********************************************************************
111  *              StopSound (SOUND.10)
112  */
113 INT16 WINAPI StopSound16(void)
114 {
115   return 0;
116 }
117
118 /***********************************************************************
119  *              WaitSoundState (SOUND.11)
120  */
121 INT16 WINAPI WaitSoundState16(INT16 x)
122 {
123     FIXME("(%d): stub\n", x);
124     return 0;
125 }
126
127 /***********************************************************************
128  *              SyncAllVoices (SOUND.12)
129  */
130 INT16 WINAPI SyncAllVoices16(void)
131 {
132     FIXME("(void): stub\n");
133     return 0;
134 }
135
136 /***********************************************************************
137  *              CountVoiceNotes (SOUND.13)
138  */
139 INT16 WINAPI CountVoiceNotes16(INT16 x)
140 {
141     FIXME("(%d): stub\n", x);
142     return 0;
143 }
144
145 /***********************************************************************
146  *              GetThresholdEvent (SOUND.14)
147  */
148 LPINT16 WINAPI GetThresholdEvent16(void)
149 {
150     FIXME("(void): stub\n");
151     return NULL;
152 }
153
154 /***********************************************************************
155  *              GetThresholdStatus (SOUND.15)
156  */
157 INT16 WINAPI GetThresholdStatus16(void)
158 {
159     FIXME("(void): stub\n");
160     return 0;
161 }
162
163 /***********************************************************************
164  *              SetVoiceThreshold (SOUND.16)
165  */
166 INT16 WINAPI SetVoiceThreshold16(INT16 a, INT16 b)
167 {
168     FIXME("(%d,%d): stub\n", a, b);
169     return 0;
170 }
171
172 /***********************************************************************
173  *              DoBeep (SOUND.17)
174  */
175 void WINAPI DoBeep16(void)
176 {
177     FIXME("(void): stub!\n");
178 }
179
180
181
182