From d78900cd1497441d7712805b08072e46ee361ff8 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Sun, 19 Feb 2017 17:25:56 +0900 Subject: add opna status display --- libopna/opnafm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libopna/opnafm.c') 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<lselect[c]) lo += o; if (fm->rselect[c]) ro += o; } -- cgit v1.2.3