Skip to content

Commit

Permalink
Minor changes in relation with FLAC
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcima committed May 22, 2020
1 parent 17fbff5 commit 393aef5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sfizz/FileInstrument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ bool FileInstruments::extractFromFlac(const fs::path& path, SF_INSTRUMENT& ins)
memset(&ins, 0, sizeof(SF_INSTRUMENT));

#if !defined(_WIN32)
FILE_u stream(fopen(path.native().c_str(), "rb"));
FILE_u stream(fopen(path.c_str(), "rb"));
#else
FILE_u stream(_wfopen(path.wstring().c_str(), L"rb"));
#endif
Expand Down Expand Up @@ -129,7 +129,7 @@ bool FileInstruments::extractFromFlac(const fs::path& path, SF_INSTRUMENT& ins)
std::unique_ptr<uint8_t[]> chunk { new uint8_t[riffChunkSize] };
if (fread(chunk.get(), riffChunkSize, 1, stream.get()) == 1)
return extractSamplerChunkInstrument(
absl::MakeConstSpan(chunk.get(), riffChunkSize), ins);
{ chunk.get(), riffChunkSize }, ins);
}
}

Expand Down

0 comments on commit 393aef5

Please sign in to comment.