Revert "Switch to SAASound for CMS"

This reverts commit fd61844061.
This commit is contained in:
Cacodemon345
2025-05-18 13:47:06 +06:00
parent 9cfe5141d4
commit 5390f50e51
26 changed files with 115 additions and 3015 deletions

View File

@@ -7,20 +7,23 @@
#define MASTER_CLOCK 7159090
typedef struct cms_t {
#ifdef SAASOUND_H_INCLUDED
SAASND saasound;
SAASND saasound2;
#else
void* saasound;
void* saasound2;
#endif
int addrs[2];
uint8_t regs[2][32];
uint16_t latch[2][6];
int freq[2][6];
float count[2][6];
int vol[2][6][2];
int stat[2][6];
uint16_t noise[2][2];
uint16_t noisefreq[2][2];
int noisecount[2][2];
int noisetype[2][2];
uint8_t latched_data;
int16_t buffer[WTBUFLEN * 2];
int16_t buffer2[WTBUFLEN * 2];
int16_t buffer[SOUNDBUFLEN * 2];
int pos, pos2;
int pos;
} cms_t;
extern void cms_update(cms_t *cms);