From 0399f008b22482c46d37fa15e6be205b85681011 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 3 Jan 2025 23:43:56 +0100 Subject: Buffer position compensation for PCM, added active sensing detection --- PCM.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'PCM.h') diff --git a/PCM.h b/PCM.h index 3e9b41d..a74b2ea 100644 --- a/PCM.h +++ b/PCM.h @@ -82,7 +82,7 @@ public: if (0 > snd_pcm_delay(handle, &delay)) { } - m_phase = 0; // - click_latency_frames + delay + m_phase = - click_latency_frames + delay; } // generate 1 buffer size -- cgit v1.2.3