sound.c 4.48 KB
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
1
/*
2 3
 * 16-bit sound support
 *
Alexandre Julliard's avatar
Alexandre Julliard committed
4
 *  Copyright  Robert J. Amstadt, 1993
5 6 7 8 9 10 11 12 13 14 15 16 17
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
Alexandre Julliard's avatar
Alexandre Julliard committed
19
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
20

21
#include <stdarg.h>
Alexandre Julliard's avatar
Alexandre Julliard committed
22
#include <stdlib.h>
23
#include "windef.h"
24
#include "winbase.h"
25
#include "wine/windef16.h"
26
#include "wine/debug.h"
Alexandre Julliard's avatar
Alexandre Julliard committed
27

28
WINE_DEFAULT_DEBUG_CHANNEL(sound);
29

30
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
31
 *		OpenSound (SOUND.1)
32
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
33
INT16 WINAPI OpenSound16(void)
Alexandre Julliard's avatar
Alexandre Julliard committed
34
{
35
  FIXME("(void): stub\n");
Alexandre Julliard's avatar
Alexandre Julliard committed
36 37 38
  return -1;
}

39
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
40
 *		CloseSound (SOUND.2)
41
 */
42
void WINAPI CloseSound16(void)
Alexandre Julliard's avatar
Alexandre Julliard committed
43
{
44
  FIXME("(void): stub\n");
Alexandre Julliard's avatar
Alexandre Julliard committed
45 46
}

47
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
48
 *		SetVoiceQueueSize (SOUND.3)
49
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
50
INT16 WINAPI SetVoiceQueueSize16(INT16 nVoice, INT16 nBytes)
Alexandre Julliard's avatar
Alexandre Julliard committed
51
{
52
  FIXME("(%d,%d): stub\n",nVoice,nBytes);
Alexandre Julliard's avatar
Alexandre Julliard committed
53 54 55
  return 0;
}

56
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
57
 *		SetVoiceNote (SOUND.4)
58
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
59 60
INT16 WINAPI SetVoiceNote16(INT16 nVoice, INT16 nValue, INT16 nLength,
                            INT16 nCdots)
Alexandre Julliard's avatar
Alexandre Julliard committed
61
{
62
  FIXME("(%d,%d,%d,%d): stub\n",nVoice,nValue,nLength,nCdots);
Alexandre Julliard's avatar
Alexandre Julliard committed
63 64 65
  return 0;
}

66
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
67
 *		SetVoiceAccent (SOUND.5)
68
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
69 70
INT16 WINAPI SetVoiceAccent16(INT16 nVoice, INT16 nTempo, INT16 nVolume,
                              INT16 nMode, INT16 nPitch)
Alexandre Julliard's avatar
Alexandre Julliard committed
71
{
72
  FIXME("(%d,%d,%d,%d,%d): stub\n", nVoice, nTempo,
Alexandre Julliard's avatar
Alexandre Julliard committed
73
	nVolume, nMode, nPitch);
Alexandre Julliard's avatar
Alexandre Julliard committed
74 75 76
  return 0;
}

77
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
78
 *		SetVoiceEnvelope (SOUND.6)
79
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
80
INT16 WINAPI SetVoiceEnvelope16(INT16 nVoice, INT16 nShape, INT16 nRepeat)
Alexandre Julliard's avatar
Alexandre Julliard committed
81
{
82
  FIXME("(%d,%d,%d): stub\n",nVoice,nShape,nRepeat);
Alexandre Julliard's avatar
Alexandre Julliard committed
83 84 85
  return 0;
}

86
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
87
 *		SetSoundNoise (SOUND.7)
88
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
89
INT16 WINAPI SetSoundNoise16(INT16 nSource, INT16 nDuration)
Alexandre Julliard's avatar
Alexandre Julliard committed
90
{
91
  FIXME("(%d,%d): stub\n",nSource,nDuration);
Alexandre Julliard's avatar
Alexandre Julliard committed
92 93 94
  return 0;
}

95
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
96
 *		SetVoiceSound (SOUND.8)
97
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
98
INT16 WINAPI SetVoiceSound16(INT16 nVoice, DWORD lFrequency, INT16 nDuration)
Alexandre Julliard's avatar
Alexandre Julliard committed
99
{
100
  FIXME("(%d, %d, %d): stub\n",nVoice,lFrequency, nDuration);
Alexandre Julliard's avatar
Alexandre Julliard committed
101
  return 0;
Alexandre Julliard's avatar
Alexandre Julliard committed
102 103
}

104
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
105
 *		StartSound (SOUND.9)
106
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
107
INT16 WINAPI StartSound16(void)
Alexandre Julliard's avatar
Alexandre Julliard committed
108
{
Alexandre Julliard's avatar
Alexandre Julliard committed
109
  return 0;
Alexandre Julliard's avatar
Alexandre Julliard committed
110 111
}

112
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
113
 *		StopSound (SOUND.10)
114
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
115
INT16 WINAPI StopSound16(void)
Alexandre Julliard's avatar
Alexandre Julliard committed
116
{
Alexandre Julliard's avatar
Alexandre Julliard committed
117
  return 0;
Alexandre Julliard's avatar
Alexandre Julliard committed
118 119
}

120
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
121
 *		WaitSoundState (SOUND.11)
122
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
123
INT16 WINAPI WaitSoundState16(INT16 x)
Alexandre Julliard's avatar
Alexandre Julliard committed
124
{
125
    FIXME("(%d): stub\n", x);
Alexandre Julliard's avatar
Alexandre Julliard committed
126
    return 0;
Alexandre Julliard's avatar
Alexandre Julliard committed
127 128
}

129
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
130
 *		SyncAllVoices (SOUND.12)
131
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
132
INT16 WINAPI SyncAllVoices16(void)
Alexandre Julliard's avatar
Alexandre Julliard committed
133
{
134
    FIXME("(void): stub\n");
Alexandre Julliard's avatar
Alexandre Julliard committed
135 136 137
    return 0;
}

138
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
139
 *		CountVoiceNotes (SOUND.13)
140
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
141
INT16 WINAPI CountVoiceNotes16(INT16 x)
Alexandre Julliard's avatar
Alexandre Julliard committed
142
{
143
    FIXME("(%d): stub\n", x);
Alexandre Julliard's avatar
Alexandre Julliard committed
144 145 146
    return 0;
}

147
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
148
 *		GetThresholdEvent (SOUND.14)
149
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
150
LPINT16 WINAPI GetThresholdEvent16(void)
Alexandre Julliard's avatar
Alexandre Julliard committed
151
{
152
    FIXME("(void): stub\n");
Alexandre Julliard's avatar
Alexandre Julliard committed
153 154 155
    return NULL;
}

156
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
157
 *		GetThresholdStatus (SOUND.15)
158
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
159
INT16 WINAPI GetThresholdStatus16(void)
Alexandre Julliard's avatar
Alexandre Julliard committed
160
{
161
    FIXME("(void): stub\n");
Alexandre Julliard's avatar
Alexandre Julliard committed
162 163 164
    return 0;
}

165
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
166
 *		SetVoiceThreshold (SOUND.16)
167
 */
Alexandre Julliard's avatar
Alexandre Julliard committed
168
INT16 WINAPI SetVoiceThreshold16(INT16 a, INT16 b)
Alexandre Julliard's avatar
Alexandre Julliard committed
169
{
170
    FIXME("(%d,%d): stub\n", a, b);
Alexandre Julliard's avatar
Alexandre Julliard committed
171
    return 0;
Alexandre Julliard's avatar
Alexandre Julliard committed
172 173
}

174
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
175
 *		DoBeep (SOUND.17)
176
 */
177
void WINAPI DoBeep16(void)
Alexandre Julliard's avatar
Alexandre Julliard committed
178
{
179
    FIXME("(void): stub!\n");
Alexandre Julliard's avatar
Alexandre Julliard committed
180
}