2022-02-18 19:42:21 -05:00
|
|
|
#ifndef SOUND_CMS_H
|
2022-02-22 20:28:56 -05:00
|
|
|
#define SOUND_CMS_H
|
2021-08-04 13:48:41 +05:00
|
|
|
|
|
|
|
|
#include <86box/sound.h>
|
2022-02-22 20:28:56 -05:00
|
|
|
#include <stdint.h>
|
2021-08-04 13:48:41 +05:00
|
|
|
|
|
|
|
|
#define MASTER_CLOCK 7159090
|
|
|
|
|
|
2022-02-22 20:28:56 -05:00
|
|
|
typedef struct cms_t {
|
2025-04-01 15:44:37 +06:00
|
|
|
#ifdef SAASOUND_H_INCLUDED
|
|
|
|
|
SAASND saasound;
|
|
|
|
|
SAASND saasound2;
|
|
|
|
|
#else
|
|
|
|
|
void* saasound;
|
|
|
|
|
void* saasound2;
|
|
|
|
|
#endif
|
2021-08-04 13:48:41 +05:00
|
|
|
|
2022-02-22 20:28:56 -05:00
|
|
|
uint8_t latched_data;
|
|
|
|
|
|
2025-04-01 15:44:37 +06:00
|
|
|
int16_t buffer[WTBUFLEN * 2];
|
|
|
|
|
int16_t buffer2[WTBUFLEN * 2];
|
2022-02-22 20:28:56 -05:00
|
|
|
|
2025-04-01 15:44:37 +06:00
|
|
|
int pos, pos2;
|
2022-02-22 20:28:56 -05:00
|
|
|
} cms_t;
|
2021-08-04 13:48:41 +05:00
|
|
|
|
2022-02-22 20:28:56 -05:00
|
|
|
extern void cms_update(cms_t *cms);
|
2023-08-21 20:26:11 -04:00
|
|
|
extern void cms_write(uint16_t addr, uint8_t val, void *priv);
|
|
|
|
|
extern uint8_t cms_read(uint16_t addr, void *priv);
|
2021-08-04 13:48:41 +05:00
|
|
|
|
2022-02-22 20:28:56 -05:00
|
|
|
#endif /*SOUND_CMS_H*/
|