aboutsummaryrefslogtreecommitdiff
path: root/libopna/opnassg.c
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-01-18 23:37:07 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-01-18 23:37:07 +0900
commite8fd09abf68b944b05554c82adb577514cad5ca5 (patch)
treef8882715e86534cec2dc20154fd24c6bef3c668b /libopna/opnassg.c
parent09ea1fe272aca6ebb6840f02765acd44ac3ecebc (diff)
improve FMDSP and enable title display on win32
Diffstat (limited to 'libopna/opnassg.c')
-rw-r--r--libopna/opnassg.c5
1 files changed, 3 insertions, 2 deletions
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;