shithub: pt2-clone

Download patch

ref: 9768eae03edfeb3ac5ea2ccbb6f81b873c540c20
parent: 1be67afd925e4768d332d4ebe8cb145640a2d6a1
author: Olav Sørensen <olav.sorensen@live.no>
date: Sun Oct 10 19:12:08 EDT 2021

Oh no, forgot this!

--- a/src/pt2_audio.c
+++ b/src/pt2_audio.c
@@ -373,6 +373,10 @@
 	// set current sample point
 	v->dSample = v->AUD_DAT[0] * v->AUD_VOL;
 
+	// progress AUD_DAT buffer
+	v->AUD_DAT[0] = v->AUD_DAT[1];
+	v->sampleCounter--;
+
 	// set BLEP stuff
 	v->dLastPhase = 0.0;
 	v->dLastDelta = v->dDelta;