diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-02-19 17:25:56 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-02-19 17:25:56 +0900 |
commit | d78900cd1497441d7712805b08072e46ee361ff8 (patch) | |
tree | 5a696ac5ffa4e6d71992c9329ff5b13ad14cf977 /libopna/opnafm.c | |
parent | be500d48fbc381273dfdc600898f68df725aa954 (diff) |
add opna status display
Diffstat (limited to 'libopna/opnafm.c')
-rw-r--r-- | libopna/opnafm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libopna/opnafm.c b/libopna/opnafm.c index c7512a8..437fcdc 100644 --- a/libopna/opnafm.c +++ b/libopna/opnafm.c @@ -58,6 +58,7 @@ void opna_fm_reset(struct opna_fm *fm) { fm->ch3.fnum[i] = 0; fm->ch3.blk[i] = 0; } + fm->mask = 0; } #define LIBOPNA_ENABLE_HIRES // maximum output: 2042<<2 = 8168 @@ -497,6 +498,7 @@ void opna_fm_mix(struct opna_fm *fm, int16_t *buf, unsigned samples) { opna_fm_chan_phase(&fm->channel[c]); } o >>= 1; + if (fm->mask & (1<<c)) continue; if (fm->lselect[c]) lo += o; if (fm->rselect[c]) ro += o; } |