summaryrefslogtreecommitdiffhomepage
path: root/MainLoop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'MainLoop.cpp')
-rw-r--r--MainLoop.cpp6
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;
}