summaryrefslogtreecommitdiffhomepage
path: root/PCM.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'PCM.cpp')
-rw-r--r--PCM.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/PCM.cpp b/PCM.cpp
index e6d915f..218ba59 100644
--- a/PCM.cpp
+++ b/PCM.cpp
@@ -59,13 +59,13 @@ PCM::~PCM()
free(pfd);
}
-void PCM::click()
+void PCM::click(int64_t offset_us)
{
snd_pcm_sframes_t delay;
if (0 > snd_pcm_delay(handle, &delay)) {
}
- m_phase = - click_latency_frames + delay;
+ m_phase = - click_latency_frames + delay + offset_us;
}
// generate 1 buffer size