diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-04-03 22:19:14 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-04-03 22:19:49 +0900 |
commit | fd698bc65313888c689877128d4b489c64f2e85f (patch) | |
tree | 0ad39ba217b1b43ffa1156f7ab81fcb6b186b9aa /fmdriver/ppz8.h | |
parent | 4e4ba88b67cc9e891a69d65bbde460e1ba51a39e (diff) |
pmd: fix PPZ8 loop
Diffstat (limited to 'fmdriver/ppz8.h')
-rw-r--r-- | fmdriver/ppz8.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); |