wavelength 1.0.0
Loading...
Searching...
No Matches
synthnull.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "os/string.h"
6#include "synth/synth.h"
7
15class SynthNull : public Synth {
16public:
24 int Init() override {
25 return 0;
26 }
27
35 int Terminate() override {
36 return 0;
37 }
38
43 ~SynthNull() override {
44 }
45
54 int SendPackedMessage([[maybe_unused]] unsigned int nPacked) override {
55 return 0;
56 }
57
69 int SendMessage([[maybe_unused]] unsigned char nByte0,
70 [[maybe_unused]] unsigned char nByte1,
71 [[maybe_unused]] unsigned char nByte2,
72 [[maybe_unused]] int nByte3) override {
73 return 0;
74 }
75
82 void UpdateTime() override {
83 }
84
92 int Poll() override {
93 return 0;
94 }
95
105 int GetStreamFormat([[maybe_unused]] int *pnRate, [[maybe_unused]] int *pnBlock) override {
106 return 0;
107 }
108
117 int Partition([[maybe_unused]] const std::vector<int> &blocks) override {
118 return 0;
119 }
120
129 int GetBankBlockCount([[maybe_unused]] const String &file) override {
130 return 0;
131 }
132
141 bool IsBankLoaded([[maybe_unused]] unsigned short nSlot) override {
142 return true;
143 }
144
155 int LoadBank([[maybe_unused]] unsigned short nSlot,
156 [[maybe_unused]] const String &file,
157 [[maybe_unused]] bool bSkipPending) override {
158 return 0;
159 }
160
169 int UnloadBank([[maybe_unused]] unsigned short nSlot) override {
170 return 0;
171 }
172
180 int EnableSoftFx() override {
181 return 0;
182 }
183
191 int DisableSoftFx() override {
192 return 0;
193 }
194};
Growable text buffer that is also a PrnStream.
Definition string.h:19
Sound output that does nothing, built when the configuration asks for no synthesiser.
Definition synthnull.h:15
bool IsBankLoaded(unsigned short nSlot) override
Report every bank loaded.
Definition synthnull.h:141
int SendPackedMessage(unsigned int nPacked) override
Discard a message.
Definition synthnull.h:54
~SynthNull() override
Definition synthnull.h:43
int SendMessage(unsigned char nByte0, unsigned char nByte1, unsigned char nByte2, int nByte3) override
Discard a message.
Definition synthnull.h:69
int UnloadBank(unsigned short nSlot) override
Do nothing.
Definition synthnull.h:169
int Terminate() override
Do nothing.
Definition synthnull.h:35
int LoadBank(unsigned short nSlot, const String &file, bool bSkipPending) override
Do nothing.
Definition synthnull.h:155
int EnableSoftFx() override
Do nothing.
Definition synthnull.h:180
int GetStreamFormat(int *pnRate, int *pnBlock) override
Report nothing.
Definition synthnull.h:105
int Partition(const std::vector< int > &blocks) override
Do nothing.
Definition synthnull.h:117
int Poll() override
Do nothing.
Definition synthnull.h:92
int GetBankBlockCount(const String &file) override
Report an empty bank.
Definition synthnull.h:129
int Init() override
Do nothing.
Definition synthnull.h:24
void UpdateTime() override
Do nothing.
Definition synthnull.h:82
int DisableSoftFx() override
Do nothing.
Definition synthnull.h:191
The MIDI synthesiser that drives the SPU2 voices.
Definition synth.h:19