mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-01 10:32:40 +00:00
try to fix RSS volume
commit 345e1124864a12c205da28f62c8b939d1be9fe65 of https://github.com/nukeykt/YM2608-LLE by nukeykt
This commit is contained in:
parent
ae7c090a4a
commit
7a55ff48fe
1 changed files with 4 additions and 2 deletions
6
extern/YM2608-LLE/fmopna_impl.c
vendored
6
extern/YM2608-LLE/fmopna_impl.c
vendored
|
@ -2670,10 +2670,12 @@ void FMOPNA_2612_Clock(fmopna_2612_t* chip, int clk)
|
|||
|
||||
chip->rss_tl_shift[1] = chip->rss_tl_shift[0];
|
||||
}
|
||||
int tl = (chip->rss_params[1] & 0x1f) + chip->rss_tl_l;
|
||||
int tl = (((chip->rss_params[1] & 0x1f) | 0x20) + chip->rss_tl_l + 1) ^ 63;
|
||||
int key = (chip->rss_key[1] & 0x20) != 0;
|
||||
if ((tl & 64) != 0 || !key)
|
||||
if ((tl & 64) == 0 || !key)
|
||||
tl = 63;
|
||||
else
|
||||
tl &= 63;
|
||||
if (chip->rss_cnt1[1] == 5)
|
||||
{
|
||||
chip->rss_tl_shift[0] = (tl >> 3);
|
||||
|
|
Loading…
Reference in a new issue