notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f99f079
)
sound, fix ym2612 output volume for keyon and level changes
author
kub
<derkub@gmail.com>
Wed, 19 May 2021 17:30:04 +0000
(19:30 +0200)
committer
kub
<derkub@gmail.com>
Wed, 19 May 2021 17:30:04 +0000
(19:30 +0200)
pico/sound/ym2612.c
patch
|
blob
|
blame
|
history
diff --git
a/pico/sound/ym2612.c
b/pico/sound/ym2612.c
index
1e8680a
..
6b3e4ba
100644
(file)
--- a/
pico/sound/ym2612.c
+++ b/
pico/sound/ym2612.c
@@
-569,7
+569,7
@@
INLINE void FM_KEYON(int c , int s )
} else {
\r
SLOT->volume = MIN_ATT_INDEX;
\r
}
\r
-
//
recalc_volout(SLOT);
\r
+
recalc_volout(SLOT);
\r
ym2612.slot_mask |= (1<<s) << (c*4);
\r
}
\r
}
\r
@@
-608,8
+608,8
@@
INLINE void set_det_mul(FM_CH *CH, FM_SLOT *SLOT, int v)
INLINE void set_tl(FM_SLOT *SLOT, int v)
\r
{
\r
SLOT->tl = (v&0x7f)<<(ENV_BITS-7); /* 7bit TL */
\r
-
//
if (SLOT->state > EG_REL)
\r
-
//
recalc_volout(SLOT);
\r
+
if (SLOT->state > EG_REL)
\r
+
recalc_volout(SLOT);
\r
}
\r
\r
/* set attack rate & key scale */
\r