Files
86Box/src/include/86box/snd_cms.h

31 lines
574 B
C
Raw Normal View History

2022-02-18 19:42:21 -05:00
#ifndef SOUND_CMS_H
#define SOUND_CMS_H
#include <86box/sound.h>
#include <stdint.h>
#define MASTER_CLOCK 7159090
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
uint8_t latched_data;
2025-04-01 15:44:37 +06:00
int16_t buffer[WTBUFLEN * 2];
int16_t buffer2[WTBUFLEN * 2];
2025-04-01 15:44:37 +06:00
int pos, pos2;
} cms_t;
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);
#endif /*SOUND_CMS_H*/