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

30 lines
554 B
C
Raw Normal View History

2022-02-18 19:42:21 -05:00
#ifndef SOUND_YM7128_H
#define SOUND_YM7128_H
2022-02-18 19:42:21 -05:00
typedef struct ym7128_t {
int a0, sci;
uint8_t dat;
2022-02-20 02:26:27 -05:00
int reg_sel;
uint8_t regs[32];
2022-02-20 02:26:27 -05:00
int gl[8], gr[8];
int vm, vc, vl, vr;
int c0, c1;
int t[9];
2022-02-20 02:26:27 -05:00
int16_t filter_dat;
int16_t prev_l, prev_r;
2022-02-20 02:26:27 -05:00
int16_t delay_buffer[2400];
int delay_pos;
2022-02-20 02:26:27 -05:00
int16_t last_samp;
} ym7128_t;
void ym7128_init(ym7128_t *ym7128);
void ym7128_write(ym7128_t *ym7128, uint8_t val);
void ym7128_apply(ym7128_t *ym7128, int16_t *buffer, int len);
2022-02-18 19:42:21 -05:00
#endif /*SOUND_YM7128_H*/