diff options
Diffstat (limited to 'PCM.cpp')
-rw-r--r-- | PCM.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |