Skip to content

Commit

Permalink
Fix for initial sample buffer state that broke external trigger logic…
Browse files Browse the repository at this point in the history
…, possible fix for #65
  • Loading branch information
maxim-zhao committed Jun 6, 2021
1 parent 59c5e99 commit 5fa0c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LibSidWiz/SampleBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ private class Chunk

public bool Contains(long index)
{
return index >= Offset && index < Offset + ChunkSize;
return Offset >= 0 && index >= Offset && index < Offset + ChunkSize;
}
}

Expand Down

0 comments on commit 5fa0c03

Please sign in to comment.