aboutsummaryrefslogtreecommitdiff
path: root/libopna/opnassg.c
diff options
context:
space:
mode:
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;