From e8fd09abf68b944b05554c82adb577514cad5ca5 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Wed, 18 Jan 2017 23:37:07 +0900 Subject: improve FMDSP and enable title display on win32 --- libopna/opnassg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libopna') diff --git a/libopna/opnassg.c b/libopna/opnassg.c index d87dc91..cc797b0 100644 --- a/libopna/opnassg.c +++ b/libopna/opnassg.c @@ -171,18 +171,19 @@ 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 0 if (opna_ssg_tone_out(ssg, ch)) { int level = opna_ssg_chan_env(ssg, ch) ? opna_ssg_env_level(ssg) : (opna_ssg_tone_volume(ssg, ch) << 1) + 1; out += voltable[level]; } - */ +#else if (!opna_ssg_tone_silent(ssg, ch)) { int level = opna_ssg_channel_level(ssg, ch); out += opna_ssg_tone_out(ssg, ch) ? voltable[level] : -voltable[level]; } +#endif } buf[i] = out / 4; -- cgit v1.2.3