Skip to content

Commit

Permalink
fix: Read OGG as a direct binary stream to avoid StreamFilterOGG (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmacha authored May 31, 2024
1 parent b9b0589 commit c05cadb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NH/Bass/MusicTheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c05cadb

Please sign in to comment.