Move on .cpp, prepare for variable rate support
This commit is contained in:
parent
8e69a7b617
commit
6aa88b0770
|
@ -22,9 +22,6 @@
|
||||||
|
|
||||||
#include "fmsharedbase.h"
|
#include "fmsharedbase.h"
|
||||||
|
|
||||||
#define CHIP_FREQBASE fmFreqBase
|
|
||||||
#define CHIP_DIVIDER fmDivBase
|
|
||||||
|
|
||||||
#define PLEASE_HELP_ME(_targetChan) \
|
#define PLEASE_HELP_ME(_targetChan) \
|
||||||
int boundaryBottom=parent->calcBaseFreq(chipClock,CHIP_FREQBASE,0,false); \
|
int boundaryBottom=parent->calcBaseFreq(chipClock,CHIP_FREQBASE,0,false); \
|
||||||
int boundaryTop=parent->calcBaseFreq(chipClock,CHIP_FREQBASE,12,false); \
|
int boundaryTop=parent->calcBaseFreq(chipClock,CHIP_FREQBASE,12,false); \
|
||||||
|
@ -104,9 +101,9 @@ class DivPlatformOPN: public DivPlatformFMBase {
|
||||||
0x00, 0x04, 0x08, 0x0c
|
0x00, 0x04, 0x08, 0x0c
|
||||||
};
|
};
|
||||||
|
|
||||||
const double fmFreqBase;
|
double fmFreqBase;
|
||||||
const double fmDivBase;
|
double fmDivBase;
|
||||||
const unsigned char ayDiv;
|
unsigned char ayDiv;
|
||||||
|
|
||||||
DivPlatformOPN(double f=9440540.0, double d=72, unsigned char a=32):
|
DivPlatformOPN(double f=9440540.0, double d=72, unsigned char a=32):
|
||||||
DivPlatformFMBase(),
|
DivPlatformFMBase(),
|
||||||
|
|
|
@ -22,6 +22,9 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#define CHIP_FREQBASE fmFreqBase
|
||||||
|
#define CHIP_DIVIDER fmDivBase
|
||||||
|
|
||||||
#define IS_REALLY_MUTED(x) (isMuted[x] && (x<5 || !softPCM || (isMuted[5] && isMuted[6])))
|
#define IS_REALLY_MUTED(x) (isMuted[x] && (x<5 || !softPCM || (isMuted[5] && isMuted[6])))
|
||||||
|
|
||||||
const char* DivPlatformGenesis::getEffectName(unsigned char effect) {
|
const char* DivPlatformGenesis::getEffectName(unsigned char effect) {
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
#include "../engine.h"
|
#include "../engine.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#define CHIP_FREQBASE fmFreqBase
|
||||||
|
#define CHIP_DIVIDER fmDivBase
|
||||||
|
|
||||||
int DivPlatformGenesisExt::dispatch(DivCommand c) {
|
int DivPlatformGenesisExt::dispatch(DivCommand c) {
|
||||||
if (c.chan<2) {
|
if (c.chan<2) {
|
||||||
return DivPlatformGenesis::dispatch(c);
|
return DivPlatformGenesis::dispatch(c);
|
||||||
|
|
|
@ -23,7 +23,8 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#define CHIP_FREQBASE fmFreqBase
|
||||||
|
#define CHIP_DIVIDER fmDivBase
|
||||||
|
|
||||||
const char* regCheatSheetYM2203[]={
|
const char* regCheatSheetYM2203[]={
|
||||||
// SSG
|
// SSG
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
#include "../engine.h"
|
#include "../engine.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#define CHIP_FREQBASE fmFreqBase
|
||||||
|
#define CHIP_DIVIDER fmDivBase
|
||||||
|
|
||||||
int DivPlatformYM2203Ext::dispatch(DivCommand c) {
|
int DivPlatformYM2203Ext::dispatch(DivCommand c) {
|
||||||
if (c.chan<2) {
|
if (c.chan<2) {
|
||||||
return DivPlatformYM2203::dispatch(c);
|
return DivPlatformYM2203::dispatch(c);
|
||||||
|
|
|
@ -24,7 +24,8 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#define CHIP_FREQBASE fmFreqBase
|
||||||
|
#define CHIP_DIVIDER fmDivBase
|
||||||
|
|
||||||
const char* regCheatSheetYM2608[]={
|
const char* regCheatSheetYM2608[]={
|
||||||
// SSG
|
// SSG
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
#include "../engine.h"
|
#include "../engine.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#define CHIP_FREQBASE fmFreqBase
|
||||||
|
#define CHIP_DIVIDER fmDivBase
|
||||||
|
|
||||||
int DivPlatformYM2608Ext::dispatch(DivCommand c) {
|
int DivPlatformYM2608Ext::dispatch(DivCommand c) {
|
||||||
if (c.chan<2) {
|
if (c.chan<2) {
|
||||||
return DivPlatformYM2608::dispatch(c);
|
return DivPlatformYM2608::dispatch(c);
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#define CHIP_FREQBASE fmFreqBase
|
||||||
|
#define CHIP_DIVIDER fmDivBase
|
||||||
|
|
||||||
const char* regCheatSheetYM2610[]={
|
const char* regCheatSheetYM2610[]={
|
||||||
// SSG
|
// SSG
|
||||||
|
|
|
@ -23,6 +23,9 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#define CHIP_FREQBASE fmFreqBase
|
||||||
|
#define CHIP_DIVIDER fmDivBase
|
||||||
|
|
||||||
const char* regCheatSheetYM2610B[]={
|
const char* regCheatSheetYM2610B[]={
|
||||||
// SSG
|
// SSG
|
||||||
"SSG_FreqL_A", "000",
|
"SSG_FreqL_A", "000",
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
#include "../engine.h"
|
#include "../engine.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#define CHIP_FREQBASE fmFreqBase
|
||||||
|
#define CHIP_DIVIDER fmDivBase
|
||||||
|
|
||||||
int DivPlatformYM2610BExt::dispatch(DivCommand c) {
|
int DivPlatformYM2610BExt::dispatch(DivCommand c) {
|
||||||
if (c.chan<2) {
|
if (c.chan<2) {
|
||||||
return DivPlatformYM2610B::dispatch(c);
|
return DivPlatformYM2610B::dispatch(c);
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
#include "../engine.h"
|
#include "../engine.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#define CHIP_FREQBASE fmFreqBase
|
||||||
|
#define CHIP_DIVIDER fmDivBase
|
||||||
|
|
||||||
int DivPlatformYM2610Ext::dispatch(DivCommand c) {
|
int DivPlatformYM2610Ext::dispatch(DivCommand c) {
|
||||||
if (c.chan<1) {
|
if (c.chan<1) {
|
||||||
return DivPlatformYM2610::dispatch(c);
|
return DivPlatformYM2610::dispatch(c);
|
||||||
|
|
Loading…
Reference in New Issue