diff --git a/MuzikaGromche/Plugin.cs b/MuzikaGromche/Plugin.cs index 011bee0..fb0dde4 100644 --- a/MuzikaGromche/Plugin.cs +++ b/MuzikaGromche/Plugin.cs @@ -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.