From 5fa0c03e20da241c89fb09241003996b1a083b12 Mon Sep 17 00:00:00 2001 From: Maxim Date: Sun, 6 Jun 2021 23:39:19 +0100 Subject: [PATCH] Fix for initial sample buffer state that broke external trigger logic, possible fix for #65 --- LibSidWiz/SampleBuffer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibSidWiz/SampleBuffer.cs b/LibSidWiz/SampleBuffer.cs index b668742..59f3c32 100644 --- a/LibSidWiz/SampleBuffer.cs +++ b/LibSidWiz/SampleBuffer.cs @@ -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; } }