Debian Codegraph @

src/engine/platform/abstract.cpp

raw
1 /**
2 * Furnace Tracker - multi-system chiptune tracker
3 * Copyright (C) 2021-2025 tildearrow and contributors
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #include "../dispatch.h"
21 #include "../../ta-log.h"
22
23 void DivDispatch::acquire(short** buf, size_t len) {
24 }
25
26 void DivDispatch::acquireDirect(blip_buffer_t** bb, size_t len) {
27 }
28
29 void DivDispatch::fillStream(std::vector<DivDelayedWrite>& stream, int sRate, size_t len) {
30 }
31
32 void DivDispatch::postProcess(short* buf, int outIndex, size_t len, int sampleRate) {
33 }
34
35 void DivDispatch::tick(bool sysTick) {
36 }
37
38 void* DivDispatch::getChanState(int chan) {
39 return NULL;
40 }
41
42 unsigned short DivDispatch::getPan(int chan) {
43 return 0;
44 }
45
46 void DivDispatch::getPaired(int ch, std::vector<DivChannelPair>& ret) {
47 }
48
49 DivChannelModeHints DivDispatch::getModeHints(int chan) {
50 return DivChannelModeHints();
51 }
52
53 DivMacroInt* DivDispatch::getChanMacroInt(int chan) {
54 return NULL;
55 }
56
57 DivSamplePos DivDispatch::getSamplePos(int chan) {
58 return DivSamplePos();
59 }
60
61 DivDispatchOscBuffer* DivDispatch::getOscBuffer(int chan) {
62 return NULL;
63 }
64
65 unsigned char* DivDispatch::getRegisterPool() {
66 return NULL;
67 }
68
69 int DivDispatch::getRegisterPoolSize() {
70 return 0;
71 }
72
73 int DivDispatch::getRegisterPoolDepth() {
74 return 8;
75 }
76
77 void* DivDispatch::getState() {
78 return NULL;
79 }
80
81 void DivDispatch::setState(void* state) {
82 }
83
84 void DivDispatch::muteChannel(int ch, bool mute) {
85 }
86
87 int DivDispatch::dispatch(DivCommand c) {
88 return 1;
89 }
90
91 void DivDispatch::reset() {
92 }
93
94 int DivDispatch::getOutputCount() {
95 return 1;
96 }
97
98 bool DivDispatch::keyOffAffectsArp(int ch) {
99 return false;
100 }
101
102 bool DivDispatch::keyOffAffectsPorta(int ch) {
103 return false;
104 }
105
106 bool DivDispatch::isVolGlobal() {
107 return false;
108 }
109
110 int DivDispatch::mapVelocity(int ch, float vel) {
111 const int volMax=MAX(1,dispatch(DivCommand(DIV_CMD_GET_VOLMAX,MAX(ch,0))));
112 return round(vel*volMax);
113 }
114
115 float DivDispatch::getGain(int ch, int vol) {
116 const float volMax=MAX(1,dispatch(DivCommand(DIV_CMD_GET_VOLMAX,MAX(ch,0))));
117 return (float)vol/volMax;
118 }
119
120 int DivDispatch::getPortaFloor(int ch) {
121 return 0x00;
122 }
123
124 bool DivDispatch::getLegacyAlwaysSetVolume() {
125 return true;
126 }
127
128 float DivDispatch::getPostAmp() {
129 return 1.0f;
130 }
131
132 bool DivDispatch::getDCOffRequired() {
133 return false;
134 }
135
136 bool DivDispatch::hasAcquireDirect() {
137 return false;
138 }
139
140 bool DivDispatch::getWantPreNote() {
141 return false;
142 }
143
144 int DivDispatch::getClockRangeMin() {
145 return MIN_CUSTOM_CLOCK;
146 }
147
148 int DivDispatch::getClockRangeMax() {
149 return MAX_CUSTOM_CLOCK;
150 }
151
152 void DivDispatch::setFlags(const DivConfig& flags) {
153 }
154
155 void DivDispatch::setSkipRegisterWrites(bool value) {
156 skipRegisterWrites=value;
157 }
158
159 void DivDispatch::notifyInsChange(int ins) {
160
161 }
162
163 void DivDispatch::notifyWaveChange(int ins) {
164
165 }
166
167 void DivDispatch::notifyInsDeletion(void* ins) {
168 logE("notifyInsDeletion NOT implemented!");
169 abort();
170 }
171
172 void DivDispatch::notifyPlaybackStop() {
173
174 }
175
176 void DivDispatch::forceIns() {
177
178 }
179
180 void DivDispatch::toggleRegisterDump(bool enable) {
181 dumpWrites=enable;
182 }
183
184 std::vector<DivRegWrite>& DivDispatch::getRegisterWrites() {
185 return regWrites;
186 }
187
188 void DivDispatch::poke(unsigned int addr, unsigned short val) {
189
190 }
191
192 void DivDispatch::poke(std::vector<DivRegWrite>& wlist) {
193
194 }
195
196 const char** DivDispatch::getRegisterSheet() {
197 return NULL;
198 }
199
200 const void* DivDispatch::getSampleMem(int index) {
201 return NULL;
202 }
203
204 size_t DivDispatch::getSampleMemCapacity(int index) {
205 return 0;
206 }
207
208 const char* DivDispatch::getSampleMemName(int index) {
209 return NULL;
210 }
211
212 size_t DivDispatch::getSampleMemUsage(int index) {
213 return 0;
214 }
215
216 const DivMemoryComposition* DivDispatch::getMemCompo(int index) {
217 return NULL;
218 }
219
220 bool DivDispatch::isSampleLoaded(int index, int sample) {
221 printf("you are calling.\n");
222 return false;
223 }
224
225 void DivDispatch::renderSamples(int sysID) {
226
227 }
228
229 void DivDispatch::notifyPitchTable() {
230 }
231
232 int DivDispatch::init(DivEngine* p, int channels, int sugRate, const DivConfig& flags) {
233 return 0;
234 }
235
236 void DivDispatch::quit() {
237 }
238
239 DivDispatch::~DivDispatch() {
240 }