SNES: get some of echo working
This commit is contained in:
parent
e5b37db55a
commit
08e23a68cd
2 changed files with 97 additions and 12 deletions
|
|
@ -77,11 +77,15 @@ class DivPlatformSNES: public DivDispatch {
|
|||
bool isMuted[8];
|
||||
int globalVolL, globalVolR;
|
||||
unsigned char noiseFreq;
|
||||
signed char echoVolL, echoVolR, echoFeedback;
|
||||
signed char echoFIR[8];
|
||||
unsigned char echoDelay;
|
||||
size_t sampleTableBase;
|
||||
bool writeControl;
|
||||
bool writeNoise;
|
||||
bool writePitchMod;
|
||||
bool writeEcho;
|
||||
bool echoOn;
|
||||
|
||||
struct QueuedWrite {
|
||||
unsigned char addr;
|
||||
|
|
@ -91,6 +95,7 @@ class DivPlatformSNES: public DivDispatch {
|
|||
std::queue<QueuedWrite> writes;
|
||||
|
||||
signed char sampleMem[65536];
|
||||
signed char copyOfSampleMem[65536];
|
||||
size_t sampleMemLen;
|
||||
unsigned int sampleOff[256];
|
||||
unsigned char regPool[0x80];
|
||||
|
|
@ -126,6 +131,7 @@ class DivPlatformSNES: public DivDispatch {
|
|||
private:
|
||||
void updateWave(int ch);
|
||||
void writeOutVol(int ch);
|
||||
void initEcho();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue