summaryrefslogtreecommitdiff
path: root/Userland/Applications/SoundPlayer/PlaybackManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/SoundPlayer/PlaybackManager.cpp')
-rw-r--r--Userland/Applications/SoundPlayer/PlaybackManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/SoundPlayer/PlaybackManager.cpp b/Userland/Applications/SoundPlayer/PlaybackManager.cpp
index e929cf144d..bf7a00c1a4 100644
--- a/Userland/Applications/SoundPlayer/PlaybackManager.cpp
+++ b/Userland/Applications/SoundPlayer/PlaybackManager.cpp
@@ -11,11 +11,11 @@ PlaybackManager::PlaybackManager(NonnullRefPtr<Audio::ConnectionToServer> connec
: m_connection(connection)
{
// FIXME: The buffer enqueuing should happen on a wholly independent second thread.
- m_timer = Core::Timer::construct(PlaybackManager::update_rate_ms, [&]() {
+ m_timer = Core::Timer::create_repeating(PlaybackManager::update_rate_ms, [&]() {
if (!m_loader)
return;
next_buffer();
- });
+ }).release_value_but_fixme_should_propagate_errors();
m_device_sample_rate = connection->get_sample_rate();
}