summaryrefslogtreecommitdiffhomepage
path: root/PCM.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-03 23:43:56 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-03 23:43:56 +0100
commit0399f008b22482c46d37fa15e6be205b85681011 (patch)
tree003060dce02839a145cf2e798d1a14e352faf212 /PCM.h
parent22cdfccb11679d6ae241653c9cb92c32f4fc1fde (diff)
Buffer position compensation for PCM, added active sensing detection
Diffstat (limited to 'PCM.h')
-rw-r--r--PCM.h2
1 files changed, 1 insertions, 1 deletions
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