Skip to content

Commit

Permalink
[ChannelFHawk] Pair back ramp-up time so shorter sounds can play out
Browse files Browse the repository at this point in the history
  • Loading branch information
Asnivor committed Sep 17, 2024
1 parent 97a8e90 commit 55762bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public partial class ChannelF : ISoundProvider
{
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ private void WritePort(ushort addr, byte value)
case 5:
_outputLatch[addr] = value;
_latchY = (value | 0xC0) ^ 0xFF;
//var audio = ((value ^ 0xFF) >> 6) & 0x03;
var audio = (value >> 6) & 0x03;
if (audio != _tone)
{
Expand Down

0 comments on commit 55762bf

Please sign in to comment.