xref: /haiku/src/kits/midi/Synth.cpp (revision 2807c36668a1730dd59bc39de65e0b8f88cd5d0d)
1 /**
2  * @file Synth.cpp
3  *
4  * @author Matthijs Hollemans
5  */
6 
7 #include "debug.h"
8 #include "Synth.h"
9 
10 //------------------------------------------------------------------------------
11 
12 BSynth::BSynth()
13 {
14 	UNIMPLEMENTED
15 }
16 
17 //------------------------------------------------------------------------------
18 
19 BSynth::BSynth(synth_mode synth)
20 {
21 	UNIMPLEMENTED
22 }
23 
24 //------------------------------------------------------------------------------
25 
26 BSynth::~BSynth()
27 {
28 	UNIMPLEMENTED
29 }
30 
31 //------------------------------------------------------------------------------
32 
33 status_t BSynth::LoadSynthData(entry_ref* instrumentsFile)
34 {
35 	UNIMPLEMENTED
36 	return B_ERROR;
37 }
38 
39 //------------------------------------------------------------------------------
40 
41 status_t BSynth::LoadSynthData(synth_mode synth)
42 {
43 	UNIMPLEMENTED
44 	return B_ERROR;
45 }
46 
47 //------------------------------------------------------------------------------
48 
49 synth_mode BSynth::SynthMode(void)
50 {
51 	UNIMPLEMENTED
52 	return B_NO_SYNTH;
53 }
54 
55 //------------------------------------------------------------------------------
56 
57 void BSynth::Unload(void)
58 {
59 	UNIMPLEMENTED
60 }
61 
62 //------------------------------------------------------------------------------
63 
64 bool BSynth::IsLoaded(void) const
65 {
66 	UNIMPLEMENTED
67 	return false;
68 }
69 
70 //------------------------------------------------------------------------------
71 
72 status_t BSynth::SetSamplingRate(int32 sample_rate)
73 {
74 	UNIMPLEMENTED
75 	return B_ERROR;
76 }
77 
78 //------------------------------------------------------------------------------
79 
80 int32 BSynth::SamplingRate() const
81 {
82 	UNIMPLEMENTED
83 	return 0;
84 }
85 
86 //------------------------------------------------------------------------------
87 
88 status_t BSynth::SetInterpolation(interpolation_mode interp_mode)
89 {
90 	UNIMPLEMENTED
91 	return B_ERROR;
92 }
93 
94 //------------------------------------------------------------------------------
95 
96 interpolation_mode BSynth::Interpolation() const
97 {
98 	UNIMPLEMENTED
99 	return B_DROP_SAMPLE;
100 }
101 
102 //------------------------------------------------------------------------------
103 
104 void BSynth::SetReverb(reverb_mode rev_mode)
105 {
106 	UNIMPLEMENTED
107 }
108 
109 //------------------------------------------------------------------------------
110 
111 reverb_mode BSynth::Reverb() const
112 {
113 	UNIMPLEMENTED
114 	return B_REVERB_NONE;
115 }
116 
117 //------------------------------------------------------------------------------
118 
119 status_t BSynth::EnableReverb(bool reverb_enabled)
120 {
121 	UNIMPLEMENTED
122 	return B_ERROR;
123 }
124 
125 //------------------------------------------------------------------------------
126 
127 bool BSynth::IsReverbEnabled() const
128 {
129 	UNIMPLEMENTED
130 	return false;
131 }
132 
133 //------------------------------------------------------------------------------
134 
135 status_t BSynth::SetVoiceLimits(
136 	int16 maxSynthVoices, int16 maxSampleVoices, int16 limiterThreshhold)
137 {
138 	UNIMPLEMENTED
139 	return B_ERROR;
140 }
141 
142 //------------------------------------------------------------------------------
143 
144 int16 BSynth::MaxSynthVoices(void) const
145 {
146 	UNIMPLEMENTED
147 	return 0;
148 }
149 
150 //------------------------------------------------------------------------------
151 
152 int16 BSynth::MaxSampleVoices(void) const
153 {
154 	UNIMPLEMENTED
155 	return 0;
156 }
157 
158 //------------------------------------------------------------------------------
159 
160 int16 BSynth::LimiterThreshhold(void) const
161 {
162 	UNIMPLEMENTED
163 	return 0;
164 }
165 
166 //------------------------------------------------------------------------------
167 
168 void BSynth::SetSynthVolume(double theVolume)
169 {
170 	UNIMPLEMENTED
171 }
172 
173 //------------------------------------------------------------------------------
174 
175 double BSynth::SynthVolume(void) const
176 {
177 	UNIMPLEMENTED
178 	return 0;
179 }
180 
181 //------------------------------------------------------------------------------
182 
183 void BSynth::SetSampleVolume(double theVolume)
184 {
185 	UNIMPLEMENTED
186 }
187 
188 //------------------------------------------------------------------------------
189 
190 double BSynth::SampleVolume(void) const
191 {
192 	UNIMPLEMENTED
193 	return 0;
194 }
195 
196 //------------------------------------------------------------------------------
197 
198 status_t BSynth::GetAudio(
199 	int16* pLeft, int16* pRight, int32 max_samples) const
200 {
201 	UNIMPLEMENTED
202 	return B_ERROR;
203 }
204 
205 //------------------------------------------------------------------------------
206 
207 void BSynth::Pause(void)
208 {
209 	UNIMPLEMENTED
210 }
211 
212 //------------------------------------------------------------------------------
213 
214 void BSynth::Resume(void)
215 {
216 	UNIMPLEMENTED
217 }
218 
219 //------------------------------------------------------------------------------
220 
221 void BSynth::SetControllerHook(int16 controller, synth_controller_hook cback)
222 {
223 	UNIMPLEMENTED
224 }
225 
226 //------------------------------------------------------------------------------
227 
228 int32 BSynth::CountClients(void) const
229 {
230 	UNIMPLEMENTED
231 	return 0;
232 }
233 
234 //------------------------------------------------------------------------------
235 
236 void BSynth::_ReservedSynth1() { }
237 void BSynth::_ReservedSynth2() { }
238 void BSynth::_ReservedSynth3() { }
239 void BSynth::_ReservedSynth4() { }
240 
241 //------------------------------------------------------------------------------
242 
243 void BSynth::_init()
244 {
245 	UNIMPLEMENTED
246 }
247 
248 //------------------------------------------------------------------------------
249 
250 status_t BSynth::_do_load(synth_mode synth)
251 {
252 	UNIMPLEMENTED
253 	return B_ERROR;
254 }
255 
256 //------------------------------------------------------------------------------
257 
258 status_t BSynth::_load_insts(entry_ref* ref)
259 {
260 	UNIMPLEMENTED
261 	return B_ERROR;
262 }
263 
264 //------------------------------------------------------------------------------
265 
266