Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Sep 29, 2024
1 parent 5625304 commit f64bd6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/soundfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ soundfx::soundfx(const std::shared_ptr<audiodevice> audiodevice,
offset = ov_read(vf.get(), reinterpret_cast<char *>(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));
Expand Down

0 comments on commit f64bd6e

Please sign in to comment.