diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-01-18 23:37:07 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-01-18 23:37:07 +0900 |
commit | e8fd09abf68b944b05554c82adb577514cad5ca5 (patch) | |
tree | f8882715e86534cec2dc20154fd24c6bef3c668b /libopna | |
parent | 09ea1fe272aca6ebb6840f02765acd44ac3ecebc (diff) |
improve FMDSP and enable title display on win32
Diffstat (limited to 'libopna')
-rw-r--r-- | libopna/opnassg.c | 5 |
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; |