From f64bd6e660d6a86c3e5c861ee2333e5ed61f0c83 Mon Sep 17 00:00:00 2001 From: Rodrigo Delduca Date: Sun, 29 Sep 2024 15:27:41 -0300 Subject: [PATCH] Work in progress --- src/soundfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soundfx.cpp b/src/soundfx.cpp index 38045d7..4849f7a 100644 --- a/src/soundfx.cpp +++ b/src/soundfx.cpp @@ -150,7 +150,7 @@ soundfx::soundfx(const std::shared_ptr audiodevice, offset = ov_read(vf.get(), reinterpret_cast(array.data()), length, bigendian, 2, 1, nullptr); if (offset < 0) { - throw std::runtime_error(fmt::format("[ov_read] error while reading file: {}, error: {}", filename, ov_strerror(bytes_read))); + throw std::runtime_error(fmt::format("[ov_read] error while reading file: {}, error: {}", filename, ov_strerror(offset))); } // std::copy(array.begin(), array.begin() + offset, std::back_inserter(data));