From bbaf24276592dd10375d02056e20a0d0500f0ba9 Mon Sep 17 00:00:00 2001 From: Piotr Macha Date: Fri, 31 May 2024 22:48:10 +0200 Subject: [PATCH] fix: Read OGG as a direct binary stream to avoid StreamFilterOGG --- src/NH/Bass/MusicTheme.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NH/Bass/MusicTheme.cpp b/src/NH/Bass/MusicTheme.cpp index ad35ffc..699b188 100644 --- a/src/NH/Bass/MusicTheme.cpp +++ b/src/NH/Bass/MusicTheme.cpp @@ -74,7 +74,7 @@ namespace NH::Bass return; } - Union::Stream* stream = file->Open(); + auto* stream = new Union::FileReader(file->GetFullName()); m_AudioFiles[type].Buffer.resize(stream->GetSize()); stream->Read(m_AudioFiles[type].Buffer.data(), m_AudioFiles[type].Buffer.size()); stream->Close();