mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-23 16:32:36 +00:00
Merge branch 'fix-loopms' into 'master'
Fix songs that use LOOPMS not looping correctly Closes #407 See merge request KartKrew/Kart!886
This commit is contained in:
commit
3d6b6a94b9
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue