more SMS work

it is able to play some modules... the next step is to bind this to the
Genesis platform
This commit is contained in:
tildearrow 2021-05-15 16:42:48 -05:00
parent d9f076ef64
commit 3172fd37ed
7 changed files with 147 additions and 2 deletions

View file

@ -1,4 +1,5 @@
#include "../dispatch.h"
#include "../macroInt.h"
#include "sound/sn76496.h"
class DivPlatformSMS: public DivDispatch {
@ -7,6 +8,7 @@ class DivPlatformSMS: public DivDispatch {
unsigned char ins, note;
bool active, insChanged, freqChanged, keyOn, keyOff;
signed char vol;
DivMacroInt std;
Channel(): freq(0), baseFreq(0), pitch(0), ins(0), note(0), active(false), insChanged(true), freqChanged(false), keyOn(false), keyOff(false), vol(15) {}
};
Channel chan[4];