Debian Codegraph @

3rdparty/iaxclient/lib/portmixer/px_none/px_none.c

raw symbols SCIP
1 /*
2 * PortMixer
3 * Empty implementation (as a placeholder on platforms where
4 * it hasn't been implemented yet)
5 *
6 * Copyright (c) 2002
7 *
8 * Written by Dominic Mazzoni
9 *
10 * PortMixer is intended to work side-by-side with PortAudio,
11 * the Portable Real-Time Audio Library by Ross Bencina and
12 * Phil Burk.
13 *
14 * Permission is hereby granted, free of charge, to any person obtaining
15 * a copy of this software and associated documentation files
16 * (the "Software"), to deal in the Software without restriction,
17 * including without limitation the rights to use, copy, modify, merge,
18 * publish, distribute, sublicense, and/or sell copies of the Software,
19 * and to permit persons to whom the Software is furnished to do so,
20 * subject to the following conditions:
21 *
22 * The above copyright notice and this permission notice shall be
23 * included in all copies or substantial portions of the Software.
24 *
25 * Any person wishing to distribute modifications to the Software is
26 * requested to send the modifications to the original developer so that
27 * they can be incorporated into the canonical version.
28 *
29 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
30 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
31 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
32 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
33 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
34 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
35 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
36 *
37 */
38
39 #include <stdlib.h>
40
41 #include "portaudio.h"
42 #include "portmixer.h"
43
44 typedef struct PxInfo
45 {
46 int dummy;
47 } PxInfo;
48
49 int Px_GetNumMixers( void *pa_stream )
50 {
51 return 0;
52 }
53
54 const char *Px_GetMixerName( void *pa_stream, int index )
55 {
56 return NULL;
57 }
58
59 PxMixer *Px_OpenMixer( void *pa_stream, int index )
60 {
61 return NULL;
62 }
63
64 /*
65 Px_CloseMixer() closes a mixer opened using Px_OpenMixer and frees any
66 memory associated with it.
67 */
68
69 void Px_CloseMixer(PxMixer *mixer)
70 {
71 }
72
73 /*
74 Master (output) volume
75 */
76
77 PxVolume Px_GetMasterVolume( PxMixer *mixer )
78 {
79 PxInfo *info = (PxInfo *)mixer;
80
81 return 0.0;
82 }
83
84 void Px_SetMasterVolume( PxMixer *mixer, PxVolume volume )
85 {
86 PxInfo *info = (PxInfo *)mixer;
87 }
88
89 /*
90 PCM output volume
91 */
92
93 PxVolume Px_GetPCMOutputVolume( PxMixer *mixer )
94 {
95 PxInfo *info = (PxInfo *)mixer;
96
97 return 0.0;
98 }
99
100 void Px_SetPCMOutputVolume( PxMixer *mixer, PxVolume volume )
101 {
102 PxInfo *info = (PxInfo *)mixer;
103 }
104
105 /*
106 All output volumes
107 */
108
109 int Px_GetNumOutputVolumes( PxMixer *mixer )
110 {
111 PxInfo *info = (PxInfo *)mixer;
112
113 return 0;
114 }
115
116 const char *Px_GetOutputVolumeName( PxMixer *mixer, int i )
117 {
118 PxInfo *info = (PxInfo *)mixer;
119
120 return NULL;
121 }
122
123 PxVolume Px_GetOutputVolume( PxMixer *mixer, int i )
124 {
125 PxInfo *info = (PxInfo *)mixer;
126
127 return NULL;
128 }
129
130 void Px_SetOutputVolume( PxMixer *mixer, int i, PxVolume volume )
131 {
132 PxInfo *info = (PxInfo *)mixer;
133 }
134
135 /*
136 Input sources
137 */
138
139 int Px_GetNumInputSources( PxMixer *mixer )
140 {
141 PxInfo *info = (PxInfo *)mixer;
142
143 return 0;
144 }
145
146 const char *Px_GetInputSourceName( PxMixer *mixer, int i)
147 {
148 PxInfo *info = (PxInfo *)mixer;
149
150 return NULL;
151 }
152
153 int Px_GetCurrentInputSource( PxMixer *mixer )
154 {
155 PxInfo *info = (PxInfo *)mixer;
156
157 return -1; /* none */
158 }
159
160 void Px_SetCurrentInputSource( PxMixer *mixer, int i )
161 {
162 PxInfo *info = (PxInfo *)mixer;
163 }
164
165 /*
166 Input volume
167 */
168
169 PxVolume Px_GetInputVolume( PxMixer *mixer )
170 {
171 PxInfo *info = (PxInfo *)mixer;
172
173 return 0.0;
174 }
175
176 void Px_SetInputVolume( PxMixer *mixer, PxVolume volume )
177 {
178 PxInfo *info = (PxInfo *)mixer;
179 }
180
181 /*
182 Balance
183 */
184
185 int Px_SupportsOutputBalance( PxMixer *mixer )
186 {
187 return 0;
188 }
189
190 PxBalance Px_GetOutputBalance( PxMixer *mixer )
191 {
192 return 0.0;
193 }
194
195 void Px_SetOutputBalance( PxMixer *mixer, PxBalance balance )
196 {
197 }
198
199 /*
200 Playthrough
201 */
202
203 int Px_SupportsPlaythrough( PxMixer *mixer )
204 {
205 return 0;
206 }
207
208 PxBalance Px_GetPlaythrough( PxMixer *mixer )
209 {
210 return 0.0;
211 }
212
213 void Px_SetPlaythrough( PxMixer *mixer, PxBalance balance )
214 {
215 }
216