mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-23 23:44:42 -04:00
fix(vm/compiler/templates): modulating delaytime in wasm could crash
The modulated delay time was converted to int with i32.trunc_f32_u. This throws runtime error if the modulations caused the delaytime to become negative, because _u implied that it should be unsigned integer and negative numbers were out of range. Using i32.trunc_f32_s fixed this.
This commit is contained in:
parent
f074c392f6
commit
4a8d4c5a29
@ -29,6 +29,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
x87 stack.
|
||||
|
||||
### Fixed
|
||||
- Modulating delaytime in wasm could crash, because delay time was converted to
|
||||
int with i32.trunc_f32_u. Using i32.trunc_f32_s fixed this.
|
||||
- When recording notes from VSTI, no track was created for instruments that had
|
||||
no notes triggered, resulting in misalignment of the tracks from instruments.
|
||||
- 32-bit su_load_gmdls clobbered ebx, even though __stdcall demands it to be not
|
||||
|
Reference in New Issue
Block a user