[ChannelFHawk] Pair back ramp-up time so shorter sounds can play out
This commit is contained in:
parent
97a8e9011e
commit
55762bf8ea
|
@ -9,7 +9,7 @@ namespace BizHawk.Emulation.Cores.Consoles.ChannelF
|
|||
{
|
||||
private const double SAMPLE_RATE = 44100;
|
||||
private const double DECAY = 0.998;
|
||||
private const int RAMP_UP_TIME = 10;
|
||||
private const int RAMP_UP_TIME = 1;
|
||||
|
||||
private int _tone;
|
||||
private short[] _sampleBuffer;
|
||||
|
|
|
@ -125,6 +125,7 @@ namespace BizHawk.Emulation.Cores.Consoles.ChannelF
|
|||
case 5:
|
||||
_outputLatch[addr] = value;
|
||||
_latchY = (value | 0xC0) ^ 0xFF;
|
||||
//var audio = ((value ^ 0xFF) >> 6) & 0x03;
|
||||
var audio = (value >> 6) & 0x03;
|
||||
if (audio != _tone)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue