From dbe72ddb8eb215de6d38cd01ed201704ab315a4f Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 4 Jan 2025 18:27:21 +0100 Subject: Compensate phase --- MainLoop.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'MainLoop.cpp') diff --git a/MainLoop.cpp b/MainLoop.cpp index 1bd0e1d..9db8c9a 100644 --- a/MainLoop.cpp +++ b/MainLoop.cpp @@ -48,11 +48,11 @@ void MainLoop::reconfigure_mode() { int mode = m_config.get_mode(); if (mode == 0) { - m_click_connection = m_note_click.signal_click.connect([&](){m_pcm.click(0);}); + m_click_connection = m_note_click.signal_click.connect([&](){m_pcm.click({});}); } else if (mode == 1) { - m_click_connection = m_clock_click.signal_click.connect([&](){m_pcm.click(0);}); + m_click_connection = m_clock_click.signal_click.connect([&](){m_pcm.click({});}); } else if (mode == 2) { - m_click_connection = m_internal_click.signal_click.connect([&](int64_t offset){m_pcm.click(offset);}); + m_click_connection = m_internal_click.signal_click.connect([&](std::chrono::duration offset){m_pcm.click(offset);}); } else { log_cout << fmt::format("Error: Unknown mode: {}", mode) << std::endl; } -- cgit v1.2.3