Skip to content

Commit 55762bf

Browse files
committed
[ChannelFHawk] Pair back ramp-up time so shorter sounds can play out
1 parent 97a8e90 commit 55762bf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/BizHawk.Emulation.Cores/Consoles/Fairchild/ChannelF/ChannelF.ISoundProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public partial class ChannelF : ISoundProvider
99
{
1010
private const double SAMPLE_RATE = 44100;
1111
private const double DECAY = 0.998;
12-
private const int RAMP_UP_TIME = 10;
12+
private const int RAMP_UP_TIME = 1;
1313

1414
private int _tone;
1515
private short[] _sampleBuffer;

src/BizHawk.Emulation.Cores/Consoles/Fairchild/ChannelF/Ports.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ private void WritePort(ushort addr, byte value)
125125
case 5:
126126
_outputLatch[addr] = value;
127127
_latchY = (value | 0xC0) ^ 0xFF;
128+
//var audio = ((value ^ 0xFF) >> 6) & 0x03;
128129
var audio = (value >> 6) & 0x03;
129130
if (audio != _tone)
130131
{

0 commit comments

Comments
 (0)