From 5ace53c96fadfb939d6b42740752d943f8b4a1ab Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Tue, 16 Jul 2024 23:46:51 -0600 Subject: [PATCH] Ladybird/Qt: Prefix AK::Duration with AK Namespace --- Ladybird/Qt/AudioCodecPluginQt.cpp | 2 +- Ladybird/Qt/AudioCodecPluginQt.h | 2 +- Ladybird/Qt/AudioThread.cpp | 2 +- Ladybird/Qt/AudioThread.h | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Ladybird/Qt/AudioCodecPluginQt.cpp b/Ladybird/Qt/AudioCodecPluginQt.cpp index 41725eb51fa..40df3ffe50e 100644 --- a/Ladybird/Qt/AudioCodecPluginQt.cpp +++ b/Ladybird/Qt/AudioCodecPluginQt.cpp @@ -59,7 +59,7 @@ void AudioCodecPluginQt::seek(double position) m_audio_thread->queue_task(move(task)).release_value_but_fixme_should_propagate_errors(); } -Duration AudioCodecPluginQt::duration() +AK::Duration AudioCodecPluginQt::duration() { return m_audio_thread->duration(); } diff --git a/Ladybird/Qt/AudioCodecPluginQt.h b/Ladybird/Qt/AudioCodecPluginQt.h index 5ee813ec1b9..c26eefb8cd3 100644 --- a/Ladybird/Qt/AudioCodecPluginQt.h +++ b/Ladybird/Qt/AudioCodecPluginQt.h @@ -31,7 +31,7 @@ public: virtual void set_volume(double) override; virtual void seek(double) override; - virtual Duration duration() override; + virtual AK::Duration duration() override; private: explicit AudioCodecPluginQt(NonnullOwnPtr); diff --git a/Ladybird/Qt/AudioThread.cpp b/Ladybird/Qt/AudioThread.cpp index 5fb321d9ad3..66a5a74e107 100644 --- a/Ladybird/Qt/AudioThread.cpp +++ b/Ladybird/Qt/AudioThread.cpp @@ -80,7 +80,7 @@ AudioThread::AudioThread(NonnullRefPtr loader, AudioTaskQueue tas , m_task_queue(move(task_queue)) { auto duration = static_cast(m_loader->total_samples()) / static_cast(m_loader->sample_rate()); - m_duration = Duration::from_milliseconds(static_cast(duration * 1000.0)); + m_duration = AK::Duration::from_milliseconds(static_cast(duration * 1000.0)); } void AudioThread::run() diff --git a/Ladybird/Qt/AudioThread.h b/Ladybird/Qt/AudioThread.h index a6da5057c8a..87a50fd9885 100644 --- a/Ladybird/Qt/AudioThread.h +++ b/Ladybird/Qt/AudioThread.h @@ -48,12 +48,12 @@ public: ErrorOr stop(); - Duration duration() const { return m_duration; } + AK::Duration duration() const { return m_duration; } ErrorOr queue_task(AudioTask task); Q_SIGNALS: - void playback_position_updated(Duration); + void playback_position_updated(AK::Duration); private: AudioThread(NonnullRefPtr loader, AudioTaskQueue task_queue); @@ -96,8 +96,8 @@ private: QByteArray m_sample_buffer; - Duration m_duration; - Duration m_position; + AK::Duration m_duration; + AK::Duration m_position; }; }