piece of trash

This commit is contained in:
tildearrow 2023-10-28 19:03:08 -05:00
parent af971680f5
commit e121c40a23
6 changed files with 46 additions and 6 deletions

View file

@ -20,7 +20,7 @@
#include "pce.h"
#include "../engine.h"
// TODO: move this away
#include "../../src/gui/furIcons.h"
#include "../../gui/furIcons.h"
#include <math.h>
//#define rWrite(a,v) pendingWrites[a]=v;

View file

@ -21,7 +21,7 @@
#include "../engine.h"
#include "../../ta-log.h"
// TODO: move this away
#include "../../src/gui/furIcons.h"
#include "../../gui/furIcons.h"
#include <math.h>
#define CHIP_FREQBASE 131072

View file

@ -19,6 +19,9 @@
#include "swan.h"
#include "../engine.h"
// TODO: move this away
#include "../../gui/furIcons.h"
#include "IconsFontAwesome4.h"
#include <math.h>
#define rWrite(a,v) if (!skipRegisterWrites) {writes.push(QueuedWrite(a,v)); if (dumpWrites) {addWrite(a,v);}}
@ -480,6 +483,30 @@ unsigned short DivPlatformSwan::getPan(int ch) {
return ((chan[ch].pan&0xf0)<<4)|(chan[ch].pan&15);
}
DivChannelModeHints DivPlatformSwan::getModeHints(int ch) {
DivChannelModeHints ret;
switch (ch) {
case 1: // PCM
ret.count=1;
ret.hint[0]=ICON_FA_VOLUME_UP;
ret.type[0]=pcm?4:0;
break;
case 2: // sweep
ret.count=1;
ret.hint[0]=ICON_FUR_SAW;
ret.type[0]=sweep?2:0;
break;
case 3: // noise
ret.count=1;
ret.hint[0]=ICON_FUR_NOISE;
ret.type[0]=noise?4:0;
break;
}
return ret;
}
DivDispatchOscBuffer* DivPlatformSwan::getOscBuffer(int ch) {
return oscBuf[ch];
}

View file

@ -63,6 +63,7 @@ class DivPlatformSwan: public DivDispatch {
void* getChanState(int chan);
DivMacroInt* getChanMacroInt(int ch);
unsigned short getPan(int chan);
DivChannelModeHints getModeHints(int chan);
DivDispatchOscBuffer* getOscBuffer(int chan);
unsigned char* getRegisterPool();
int getRegisterPoolSize();