Unify shared channel struct, De-duplicate channel debug
This commit is contained in:
parent
f455d2d942
commit
ce09edef84
55 changed files with 209 additions and 714 deletions
|
|
@ -21,26 +21,18 @@
|
|||
#define _FDS_H
|
||||
|
||||
#include "../dispatch.h"
|
||||
#include "../macroInt.h"
|
||||
#include "../waveSynth.h"
|
||||
|
||||
#include "sound/nes_nsfplay/nes_fds.h"
|
||||
|
||||
class DivPlatformFDS: public DivDispatch {
|
||||
struct Channel: public SharedChannelFreq, public SharedChannelVolume<signed char> {
|
||||
struct Channel: public SharedChannel<signed char> {
|
||||
int prevFreq, modFreq;
|
||||
unsigned char duty, sweep, modDepth, modPos;
|
||||
bool sweepChanged, modOn;
|
||||
signed short wave;
|
||||
signed char modTable[32];
|
||||
DivMacroInt std;
|
||||
void macroInit(DivInstrument* which) {
|
||||
std.init(which);
|
||||
pitch2=0;
|
||||
}
|
||||
Channel():
|
||||
SharedChannelFreq(),
|
||||
SharedChannelVolume<signed char>(32),
|
||||
SharedChannel<signed char>(32),
|
||||
prevFreq(65535),
|
||||
modFreq(0),
|
||||
duty(0),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue