From d78900cd1497441d7712805b08072e46ee361ff8 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Sun, 19 Feb 2017 17:25:56 +0900 Subject: add opna status display --- libopna/opnassg.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libopna/opnassg.c') diff --git a/libopna/opnassg.c b/libopna/opnassg.c index cc797b0..1345502 100644 --- a/libopna/opnassg.c +++ b/libopna/opnassg.c @@ -73,6 +73,7 @@ void opna_ssg_reset(struct opna_ssg *ssg) { ssg->env_alt = false; ssg->env_hld = false; ssg->env_holding = false; + ssg->mask = 0; } void opna_ssg_resampler_reset(struct opna_ssg_resampler *resampler) { @@ -171,6 +172,7 @@ void opna_ssg_generate_raw(struct opna_ssg *ssg, int16_t *buf, int samples) { ssg->ch[ch].tone_counter = 0; ssg->ch[ch].out = !ssg->ch[ch].out; } + if (ssg->mask & (1<