From 73fc061412b547b209d4425111d07504c8c44e1e Mon Sep 17 00:00:00 2001 From: SirLynix Date: Sun, 3 Dec 2023 15:30:39 +0100 Subject: [PATCH] Audio/Music: Remove unnecessary code Play() blocks until the thread (and source) has started --- src/Nazara/Audio/Music.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Nazara/Audio/Music.cpp b/src/Nazara/Audio/Music.cpp index 34a0f5092..47a85d3ac 100644 --- a/src/Nazara/Audio/Music.cpp +++ b/src/Nazara/Audio/Music.cpp @@ -218,13 +218,7 @@ namespace Nz std::lock_guard lock(m_sourceLock); - SoundStatus status = m_source->GetStatus(); - - // To compensate any delays (or the timelaps between Play() and the thread startup) - if (m_streaming && status == SoundStatus::Stopped) - status = SoundStatus::Playing; - - return status; + return m_source->GetStatus(); } /*!