From fd698bc65313888c689877128d4b489c64f2e85f Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Mon, 3 Apr 2017 22:19:14 +0900 Subject: pmd: fix PPZ8 loop --- fmdriver/ppz8.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fmdriver/ppz8.h') diff --git a/fmdriver/ppz8.h b/fmdriver/ppz8.h index cb9a158..f4ef4cb 100644 --- a/fmdriver/ppz8.h +++ b/fmdriver/ppz8.h @@ -43,6 +43,7 @@ struct ppz8 { uint16_t srate; uint8_t totalvol; uint16_t mix_volume; + unsigned mask; }; void ppz8_init(struct ppz8 *ppz8, uint16_t srate, uint16_t mix_volume); @@ -63,6 +64,9 @@ static inline uint32_t ppz8_pzi_decodebuf_samples(uint32_t pzidatalen) { return (pzidatalen - 0x920) * 2; } +unsigned ppz8_get_mask(const struct ppz8 *ppz8); +void ppz8_set_mask(struct ppz8 *ppz8, unsigned mask); + struct ppz8_functbl { void (*channel_play)(struct ppz8 *ppz8, uint8_t channel, uint8_t voice); void (*channel_stop)(struct ppz8 *ppz8, uint8_t channel); -- cgit v1.2.3