diff options
author | Roland Reichwein <mail@reichwein.it> | 2025-01-04 18:27:21 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2025-01-04 18:27:21 +0100 |
commit | dbe72ddb8eb215de6d38cd01ed201704ab315a4f (patch) | |
tree | 8fda403192090d8560bca9fe5a2e9f9e4e1a7e41 /MainLoop.cpp | |
parent | 2e793141e5434043205763c70d3a597cf2d78eeb (diff) |
Compensate phase
Diffstat (limited to 'MainLoop.cpp')
-rw-r--r-- | MainLoop.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<double> offset){m_pcm.click(offset);}); } else { log_cout << fmt::format("Error: Unknown mode: {}", mode) << std::endl; } |