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,23 +21,16 @@
|
|||
#define _PET_H
|
||||
|
||||
#include "../dispatch.h"
|
||||
#include "../macroInt.h"
|
||||
|
||||
class DivPlatformPET: public DivDispatch {
|
||||
struct Channel: public SharedChannelFreq, public SharedChannelVolume<int> {
|
||||
struct Channel: public SharedChannel<int> {
|
||||
bool enable;
|
||||
int wave;
|
||||
unsigned char sreg;
|
||||
int cnt;
|
||||
short out;
|
||||
DivMacroInt std;
|
||||
void macroInit(DivInstrument* which) {
|
||||
std.init(which);
|
||||
pitch2=0;
|
||||
}
|
||||
Channel():
|
||||
SharedChannelFreq(),
|
||||
SharedChannelVolume<int>(1),
|
||||
SharedChannel<int>(1),
|
||||
enable(false),
|
||||
wave(0b00001111),
|
||||
sreg(0),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue