[ChannelFHawk] Pair back ramp-up time so shorter sounds can play out

This commit is contained in:
Asnivor 2024-09-17 09:15:19 +01:00
parent 97a8e9011e
commit 55762bf8ea
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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)
{