From c05cadb42b633915b4cc68d9f21033f9221b8497 Mon Sep 17 00:00:00 2001 From: tehe Date: Fri, 31 May 2024 23:16:16 +0200 Subject: [PATCH] fix: Read OGG as a direct binary stream to avoid StreamFilterOGG (#34) --- 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();