Fix division erroneously rounding to integers
This fixes LoopOffset which is a non-integer factor or Beats.
This commit is contained in:
		
							parent
							
								
									cd9e0a7a10
								
							
						
					
					
						commit
						e7866fda55
					
				|  | @ -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. | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue