xref: /haiku/src/kits/midi/Synth.cpp (revision 51978af14a173e7fae0563b562be5603bc652aeb)
1 /*
2  * Copyright (c) 2002-2003 Matthijs Hollemans
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20  * DEALINGS IN THE SOFTWARE.
21  */
22 
23 #include "debug.h"
24 #include "Synth.h"
25 
26 //------------------------------------------------------------------------------
27 
28 BSynth::BSynth()
29 {
30 	UNIMPLEMENTED
31 }
32 
33 //------------------------------------------------------------------------------
34 
35 BSynth::BSynth(synth_mode synth)
36 {
37 	UNIMPLEMENTED
38 }
39 
40 //------------------------------------------------------------------------------
41 
42 BSynth::~BSynth()
43 {
44 	UNIMPLEMENTED
45 }
46 
47 //------------------------------------------------------------------------------
48 
49 status_t BSynth::LoadSynthData(entry_ref* instrumentsFile)
50 {
51 	UNIMPLEMENTED
52 	return B_ERROR;
53 }
54 
55 //------------------------------------------------------------------------------
56 
57 status_t BSynth::LoadSynthData(synth_mode synth)
58 {
59 	UNIMPLEMENTED
60 	return B_ERROR;
61 }
62 
63 //------------------------------------------------------------------------------
64 
65 synth_mode BSynth::SynthMode(void)
66 {
67 	UNIMPLEMENTED
68 	return B_NO_SYNTH;
69 }
70 
71 //------------------------------------------------------------------------------
72 
73 void BSynth::Unload(void)
74 {
75 	UNIMPLEMENTED
76 }
77 
78 //------------------------------------------------------------------------------
79 
80 bool BSynth::IsLoaded(void) const
81 {
82 	UNIMPLEMENTED
83 	return false;
84 }
85 
86 //------------------------------------------------------------------------------
87 
88 status_t BSynth::SetSamplingRate(int32 sample_rate)
89 {
90 	UNIMPLEMENTED
91 	return B_ERROR;
92 }
93 
94 //------------------------------------------------------------------------------
95 
96 int32 BSynth::SamplingRate() const
97 {
98 	UNIMPLEMENTED
99 	return 0;
100 }
101 
102 //------------------------------------------------------------------------------
103 
104 status_t BSynth::SetInterpolation(interpolation_mode interp_mode)
105 {
106 	UNIMPLEMENTED
107 	return B_ERROR;
108 }
109 
110 //------------------------------------------------------------------------------
111 
112 interpolation_mode BSynth::Interpolation() const
113 {
114 	UNIMPLEMENTED
115 	return B_DROP_SAMPLE;
116 }
117 
118 //------------------------------------------------------------------------------
119 
120 void BSynth::SetReverb(reverb_mode rev_mode)
121 {
122 	UNIMPLEMENTED
123 }
124 
125 //------------------------------------------------------------------------------
126 
127 reverb_mode BSynth::Reverb() const
128 {
129 	UNIMPLEMENTED
130 	return B_REVERB_NONE;
131 }
132 
133 //------------------------------------------------------------------------------
134 
135 status_t BSynth::EnableReverb(bool reverb_enabled)
136 {
137 	UNIMPLEMENTED
138 	return B_ERROR;
139 }
140 
141 //------------------------------------------------------------------------------
142 
143 bool BSynth::IsReverbEnabled() const
144 {
145 	UNIMPLEMENTED
146 	return false;
147 }
148 
149 //------------------------------------------------------------------------------
150 
151 status_t BSynth::SetVoiceLimits(
152 	int16 maxSynthVoices, int16 maxSampleVoices, int16 limiterThreshhold)
153 {
154 	UNIMPLEMENTED
155 	return B_ERROR;
156 }
157 
158 //------------------------------------------------------------------------------
159 
160 int16 BSynth::MaxSynthVoices(void) const
161 {
162 	UNIMPLEMENTED
163 	return 0;
164 }
165 
166 //------------------------------------------------------------------------------
167 
168 int16 BSynth::MaxSampleVoices(void) const
169 {
170 	UNIMPLEMENTED
171 	return 0;
172 }
173 
174 //------------------------------------------------------------------------------
175 
176 int16 BSynth::LimiterThreshhold(void) const
177 {
178 	UNIMPLEMENTED
179 	return 0;
180 }
181 
182 //------------------------------------------------------------------------------
183 
184 void BSynth::SetSynthVolume(double theVolume)
185 {
186 	UNIMPLEMENTED
187 }
188 
189 //------------------------------------------------------------------------------
190 
191 double BSynth::SynthVolume(void) const
192 {
193 	UNIMPLEMENTED
194 	return 0;
195 }
196 
197 //------------------------------------------------------------------------------
198 
199 void BSynth::SetSampleVolume(double theVolume)
200 {
201 	UNIMPLEMENTED
202 }
203 
204 //------------------------------------------------------------------------------
205 
206 double BSynth::SampleVolume(void) const
207 {
208 	UNIMPLEMENTED
209 	return 0;
210 }
211 
212 //------------------------------------------------------------------------------
213 
214 status_t BSynth::GetAudio(
215 	int16* pLeft, int16* pRight, int32 max_samples) const
216 {
217 	UNIMPLEMENTED
218 	return B_ERROR;
219 }
220 
221 //------------------------------------------------------------------------------
222 
223 void BSynth::Pause(void)
224 {
225 	UNIMPLEMENTED
226 }
227 
228 //------------------------------------------------------------------------------
229 
230 void BSynth::Resume(void)
231 {
232 	UNIMPLEMENTED
233 }
234 
235 //------------------------------------------------------------------------------
236 
237 void BSynth::SetControllerHook(int16 controller, synth_controller_hook cback)
238 {
239 	UNIMPLEMENTED
240 }
241 
242 //------------------------------------------------------------------------------
243 
244 int32 BSynth::CountClients(void) const
245 {
246 	UNIMPLEMENTED
247 	return 0;
248 }
249 
250 //------------------------------------------------------------------------------
251 
252 void BSynth::_ReservedSynth1() { }
253 void BSynth::_ReservedSynth2() { }
254 void BSynth::_ReservedSynth3() { }
255 void BSynth::_ReservedSynth4() { }
256 
257 //------------------------------------------------------------------------------
258