1
0
Fork 0

Fix division erroneously rounding to integers

This fixes LoopOffset which is a non-integer factor or Beats.
This commit is contained in:
ivan tkachenko 2025-10-14 00:32:42 +03:00
parent cd9e0a7a10
commit e7866fda55
1 changed files with 1 additions and 1 deletions

View File

@ -978,7 +978,7 @@ namespace MuzikaGromche
// Number of beats between WindUpTimer and where looped segment starts (not the loop audio).
public int LoopOffset { get; }
public float LoopOffsetInSeconds => LoopOffset / Beats * LoadedLoop.length;
public float LoopOffsetInSeconds => (float)LoopOffset / (float)Beats * LoadedLoop.length;
// MPEG is basically mp3, and it can produce gaps at the start.
// WAV is OK, but takes a lot of space. Try OGGVORBIS instead.