Fix LOOPMS loop point for OGG player

This commit is contained in:
James R 2023-01-12 04:33:33 -08:00
parent 78f04f8c71
commit dbdda14061

View file

@ -43,7 +43,7 @@ std::optional<std::size_t> find_loop_point(const Ogg& ogg) {
try {
int loop_ms = std::stoi(copied);
int loop_point = std::round(static_cast<double>(loop_ms) / (rate / 1000.));
int loop_point = std::round(static_cast<double>(rate) * (loop_ms / 1000.));
return loop_point;
} catch (...) {