xref: /haiku/src/kits/midi/MidiSynth.cpp (revision e79e4e7c9e432c90415f79809b7160e864f79001)
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 "MidiSynth.h"
25 
26 //------------------------------------------------------------------------------
27 
28 BMidiSynth::BMidiSynth()
29 {
30 	UNIMPLEMENTED
31 }
32 
33 //------------------------------------------------------------------------------
34 
35 BMidiSynth::~BMidiSynth()
36 {
37 	UNIMPLEMENTED
38 }
39 
40 //------------------------------------------------------------------------------
41 
42 status_t BMidiSynth::EnableInput(bool enable, bool loadInstruments)
43 {
44 	UNIMPLEMENTED
45 	return B_ERROR;
46 }
47 
48 //------------------------------------------------------------------------------
49 
50 bool BMidiSynth::IsInputEnabled(void) const
51 {
52 	UNIMPLEMENTED
53 	return false;
54 }
55 
56 //------------------------------------------------------------------------------
57 
58 void BMidiSynth::SetVolume(double volume)
59 {
60 	UNIMPLEMENTED
61 }
62 
63 //------------------------------------------------------------------------------
64 
65 double BMidiSynth::Volume(void) const
66 {
67 	UNIMPLEMENTED
68 	return 0;
69 }
70 
71 //------------------------------------------------------------------------------
72 
73 void BMidiSynth::SetTransposition(int16 offset)
74 {
75 	UNIMPLEMENTED
76 }
77 
78 //------------------------------------------------------------------------------
79 
80 int16 BMidiSynth::Transposition(void) const
81 {
82 	UNIMPLEMENTED
83 	return 0;
84 }
85 
86 //------------------------------------------------------------------------------
87 
88 void BMidiSynth::MuteChannel(int16 channel, bool do_mute)
89 {
90 	UNIMPLEMENTED
91 }
92 
93 //------------------------------------------------------------------------------
94 
95 void BMidiSynth::GetMuteMap(char* pChannels) const
96 {
97 	UNIMPLEMENTED
98 }
99 
100 //------------------------------------------------------------------------------
101 
102 void BMidiSynth::SoloChannel(int16 channel, bool do_solo)
103 {
104 	UNIMPLEMENTED
105 }
106 
107 //------------------------------------------------------------------------------
108 
109 void BMidiSynth::GetSoloMap(char* pChannels) const
110 {
111 	UNIMPLEMENTED
112 }
113 
114 //------------------------------------------------------------------------------
115 
116 status_t BMidiSynth::LoadInstrument(int16 instrument)
117 {
118 	UNIMPLEMENTED
119 	return B_ERROR;
120 }
121 
122 //------------------------------------------------------------------------------
123 
124 status_t BMidiSynth::UnloadInstrument(int16 instrument)
125 {
126 	UNIMPLEMENTED
127 	return B_ERROR;
128 }
129 
130 //------------------------------------------------------------------------------
131 
132 status_t BMidiSynth::RemapInstrument(int16 from, int16 to)
133 {
134 	UNIMPLEMENTED
135 	return B_ERROR;
136 }
137 
138 //------------------------------------------------------------------------------
139 
140 void BMidiSynth::FlushInstrumentCache(bool startStopCache)
141 {
142 	UNIMPLEMENTED
143 }
144 
145 //------------------------------------------------------------------------------
146 
147 uint32 BMidiSynth::Tick(void) const
148 {
149 	UNIMPLEMENTED
150 }
151 
152 //------------------------------------------------------------------------------
153 
154 void BMidiSynth::NoteOff(
155 	uchar channel, uchar note, uchar velocity, uint32 time)
156 {
157 	UNIMPLEMENTED
158 }
159 
160 //------------------------------------------------------------------------------
161 
162 void BMidiSynth::NoteOn(
163 	uchar channel, uchar note, uchar velocity, uint32 time)
164 {
165 	UNIMPLEMENTED
166 }
167 
168 //------------------------------------------------------------------------------
169 
170 void BMidiSynth::KeyPressure(
171 	uchar channel, uchar note, uchar pressure, uint32 time)
172 {
173 	UNIMPLEMENTED
174 }
175 
176 //------------------------------------------------------------------------------
177 
178 void BMidiSynth::ControlChange(
179 	uchar channel, uchar controlNumber, uchar controlValue, uint32 time)
180 {
181 	UNIMPLEMENTED
182 }
183 
184 //------------------------------------------------------------------------------
185 
186 void BMidiSynth::ProgramChange(
187 	uchar channel, uchar programNumber, uint32 time)
188 {
189 	UNIMPLEMENTED
190 }
191 
192 //------------------------------------------------------------------------------
193 
194 void BMidiSynth::ChannelPressure(uchar channel, uchar pressure, uint32 time)
195 {
196 	UNIMPLEMENTED
197 }
198 
199 //------------------------------------------------------------------------------
200 
201 void BMidiSynth::PitchBend(uchar channel, uchar lsb, uchar msb, uint32 time)
202 {
203 	UNIMPLEMENTED
204 }
205 
206 //------------------------------------------------------------------------------
207 
208 void BMidiSynth::AllNotesOff(bool controlOnly, uint32 time)
209 {
210 	UNIMPLEMENTED
211 }
212 
213 //------------------------------------------------------------------------------
214 
215 void BMidiSynth::_ReservedMidiSynth1() { }
216 void BMidiSynth::_ReservedMidiSynth2() { }
217 void BMidiSynth::_ReservedMidiSynth3() { }
218 void BMidiSynth::_ReservedMidiSynth4() { }
219 
220 //------------------------------------------------------------------------------
221 
222 void BMidiSynth::Run()
223 {
224 	UNIMPLEMENTED
225 }
226 
227 //------------------------------------------------------------------------------
228