mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-26 22:43:01 +00:00
SAA1099: fix frequency table going crazy
if there is more than one SAA
This commit is contained in:
parent
dd62b387c7
commit
319d02aec6
2 changed files with 2 additions and 14 deletions
12
extern/SAASound/src/SAAFreq.cpp
vendored
12
extern/SAASound/src/SAAFreq.cpp
vendored
|
@ -12,18 +12,6 @@
|
||||||
#include "SAAFreq.h"
|
#include "SAAFreq.h"
|
||||||
#include "defns.h"
|
#include "defns.h"
|
||||||
|
|
||||||
#ifdef SAAFREQ_FIXED_CLOCKRATE
|
|
||||||
// 'load in' the data for the static frequency lookup table
|
|
||||||
// precomputed for a fixed clockrate
|
|
||||||
// See: tools/freqdat.py
|
|
||||||
const unsigned long CSAAFreq::m_FreqTable[2048] = {
|
|
||||||
#include "SAAFreq.dat"
|
|
||||||
};
|
|
||||||
#else
|
|
||||||
unsigned long CSAAFreq::m_FreqTable[2048];
|
|
||||||
unsigned long CSAAFreq::m_nClockRate = 0;
|
|
||||||
#endif // SAAFREQ_FIXED_CLOCKRATE
|
|
||||||
|
|
||||||
const int INITIAL_LEVEL = 1;
|
const int INITIAL_LEVEL = 1;
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
4
extern/SAASound/src/SAAFreq.h
vendored
4
extern/SAASound/src/SAAFreq.h
vendored
|
@ -20,8 +20,8 @@ private:
|
||||||
const static unsigned long m_FreqTable[2048];
|
const static unsigned long m_FreqTable[2048];
|
||||||
#else
|
#else
|
||||||
// we'll calculate the frequency lookup table at runtime.
|
// we'll calculate the frequency lookup table at runtime.
|
||||||
static unsigned long m_FreqTable[2048];
|
unsigned long m_FreqTable[2048];
|
||||||
static unsigned long m_nClockRate;
|
unsigned long m_nClockRate;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
unsigned long m_nCounter;
|
unsigned long m_nCounter;
|
||||||
|
|
Loading…
Reference in a new issue