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,24 +21,17 @@
|
|||
#define _NES_H
|
||||
|
||||
#include "../dispatch.h"
|
||||
#include "../macroInt.h"
|
||||
|
||||
#include "sound/nes_nsfplay/nes_apu.h"
|
||||
|
||||
class DivPlatformNES: public DivDispatch {
|
||||
struct Channel: public SharedChannelFreq, public SharedChannelVolume<signed char> {
|
||||
struct Channel: public SharedChannel<signed char> {
|
||||
int prevFreq;
|
||||
unsigned char duty, sweep, envMode, len;
|
||||
bool sweepChanged, furnaceDac;
|
||||
signed char wave;
|
||||
DivMacroInt std;
|
||||
void macroInit(DivInstrument* which) {
|
||||
std.init(which);
|
||||
pitch2=0;
|
||||
}
|
||||
signed short wave;
|
||||
Channel():
|
||||
SharedChannelFreq(),
|
||||
SharedChannelVolume<signed char>(15),
|
||||
SharedChannel<signed char>(15),
|
||||
prevFreq(65535),
|
||||
duty(0),
|
||||
sweep(8),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue