Virtual Boy: make it work on hardware

issue #2373
This commit is contained in:
tildearrow 2025-02-18 02:30:14 -05:00
parent 63ee7cf5d8
commit e1b7618348
3 changed files with 70 additions and 3 deletions

View file

@ -27,22 +27,27 @@
class DivPlatformVB: public DivDispatch {
struct Channel: public SharedChannel<signed char> {
int antiClickPeriodCount, antiClickWavePos;
unsigned char pan, envLow, envHigh;
bool noise, deferredWaveUpdate;
bool noise, deferredWaveUpdate, intWritten;
signed short wave;
DivWaveSynth ws;
Channel():
SharedChannel<signed char>(15),
antiClickPeriodCount(0),
antiClickWavePos(0),
pan(255),
envLow(0),
envHigh(0),
noise(false),
deferredWaveUpdate(false),
intWritten(false),
wave(-1) {}
};
Channel chan[6];
DivDispatchOscBuffer* oscBuf[6];
bool isMuted[6];
bool antiClickEnabled, screwThis;
struct QueuedWrite {
unsigned short addr;
unsigned char val;