From 393aef53116668006264b90efa6a0de6b21fa020 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Fri, 22 May 2020 19:34:25 +0200 Subject: [PATCH] Minor changes in relation with FLAC --- src/sfizz/FileInstrument.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sfizz/FileInstrument.cpp b/src/sfizz/FileInstrument.cpp index 7ba11144a..8f4885fe4 100644 --- a/src/sfizz/FileInstrument.cpp +++ b/src/sfizz/FileInstrument.cpp @@ -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 @@ -129,7 +129,7 @@ bool FileInstruments::extractFromFlac(const fs::path& path, SF_INSTRUMENT& ins) std::unique_ptr 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); } }