mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
Fix LOOPMS loop point for OGG player
This commit is contained in:
parent
78f04f8c71
commit
dbdda14061
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ std::optional<std::size_t> find_loop_point(const Ogg& ogg) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
int loop_ms = std::stoi(copied);
|
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;
|
return loop_point;
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue