Unify shared channel struct, De-duplicate channel debug

This commit is contained in:
cam900 2022-12-13 16:22:48 +09:00
parent f455d2d942
commit ce09edef84
55 changed files with 209 additions and 714 deletions

View file

@ -19,24 +19,19 @@
#ifndef _MSM6258_H
#define _MSM6258_H
#include "../dispatch.h"
#include "../macroInt.h"
#include <queue>
#include "sound/oki/okim6258.h"
class DivPlatformMSM6258: public DivDispatch {
protected:
struct Channel: public SharedChannel, public SharedChannelVolume<int> {
struct Channel: public SharedChannel<int> {
bool furnacePCM;
int sample;
unsigned char pan;
DivMacroInt std;
void macroInit(DivInstrument* which) {
std.init(which);
}
Channel():
SharedChannel(),
SharedChannelVolume<int>(8),
SharedChannel<int>(8),
furnacePCM(false),
sample(-1),
pan(3) {}