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
|
|
@ -19,8 +19,8 @@
|
|||
|
||||
#ifndef _OPLL_H
|
||||
#define _OPLL_H
|
||||
|
||||
#include "../dispatch.h"
|
||||
#include "../macroInt.h"
|
||||
#include <queue>
|
||||
|
||||
extern "C" {
|
||||
|
|
@ -29,20 +29,14 @@ extern "C" {
|
|||
|
||||
class DivPlatformOPLL: public DivDispatch {
|
||||
protected:
|
||||
struct Channel: public SharedChannelFreq, public SharedChannelVolume<int> {
|
||||
struct Channel: public SharedChannel<int> {
|
||||
DivInstrumentFM state;
|
||||
DivMacroInt std;
|
||||
unsigned char freqH, freqL;
|
||||
int fixedFreq;
|
||||
bool furnaceDac;
|
||||
unsigned char pan;
|
||||
void macroInit(DivInstrument* which) {
|
||||
std.init(which);
|
||||
pitch2=0;
|
||||
}
|
||||
Channel():
|
||||
SharedChannelFreq(),
|
||||
SharedChannelVolume<int>(0),
|
||||
SharedChannel<int>(0),
|
||||
freqH(0),
|
||||
freqL(0),
|
||||
fixedFreq(0),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue