mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -04:00
fixed bug in distortion when using stereo and sample&hold.
This commit is contained in:
parent
10457b31ec
commit
ced4a2b7b9
Binary file not shown.
Binary file not shown.
@ -763,9 +763,10 @@ go4kDST_func_do:
|
|||||||
fst dword [WRK+go4kDST_wrk.snhphase]
|
fst dword [WRK+go4kDST_wrk.snhphase]
|
||||||
fldz ; // 0 snh' in (inr)
|
fldz ; // 0 snh' in (inr)
|
||||||
fucomip st1 ; // snh' in (inr)
|
fucomip st1 ; // snh' in (inr)
|
||||||
|
fstp dword [esp-4] ; // in (inr)
|
||||||
jc short go4kDST_func_hold
|
jc short go4kDST_func_hold
|
||||||
fld1 ; // 1 snh' in (inr)
|
fld1 ; // 1 in (inr)
|
||||||
faddp st1, st0 ; // 1+snh' in (inr)
|
fadd dword [esp-4] ; // 1+snh' in (inr)
|
||||||
fstp dword [WRK+go4kDST_wrk.snhphase]; // in (inr)
|
fstp dword [WRK+go4kDST_wrk.snhphase]; // in (inr)
|
||||||
%endif
|
%endif
|
||||||
; // calc pregain and postgain
|
; // calc pregain and postgain
|
||||||
@ -794,13 +795,12 @@ go4kDST_func_mono:
|
|||||||
%endif
|
%endif
|
||||||
ret ; // out' (outr)
|
ret ; // out' (outr)
|
||||||
%ifdef GO4K_USE_DST_SH
|
%ifdef GO4K_USE_DST_SH
|
||||||
go4kDST_func_hold: ; // snh' in (inr)
|
go4kDST_func_hold: ; // in (inr)
|
||||||
fstp st0 ; // in (inr)
|
|
||||||
fstp st0 ; // (inr)
|
fstp st0 ; // (inr)
|
||||||
%ifdef GO4K_USE_DST_STEREO
|
%ifdef GO4K_USE_DST_STEREO
|
||||||
fstp st0
|
|
||||||
test al, byte STEREO
|
test al, byte STEREO
|
||||||
jz short go4kDST_func_monohold
|
jz short go4kDST_func_monohold ; // (inr)
|
||||||
|
fstp st0 ; //
|
||||||
fld dword [WRK+go4kDST_wrk.out2] ; // outr
|
fld dword [WRK+go4kDST_wrk.out2] ; // outr
|
||||||
go4kDST_func_monohold:
|
go4kDST_func_monohold:
|
||||||
%endif
|
%endif
|
||||||
|
@ -763,9 +763,10 @@ go4kDST_func_do:
|
|||||||
fst dword [WRK+go4kDST_wrk.snhphase]
|
fst dword [WRK+go4kDST_wrk.snhphase]
|
||||||
fldz ; // 0 snh' in (inr)
|
fldz ; // 0 snh' in (inr)
|
||||||
fucomip st1 ; // snh' in (inr)
|
fucomip st1 ; // snh' in (inr)
|
||||||
|
fstp dword [esp-4] ; // in (inr)
|
||||||
jc short go4kDST_func_hold
|
jc short go4kDST_func_hold
|
||||||
fld1 ; // 1 snh' in (inr)
|
fld1 ; // 1 in (inr)
|
||||||
faddp st1, st0 ; // 1+snh' in (inr)
|
fadd dword [esp-4] ; // 1+snh' in (inr)
|
||||||
fstp dword [WRK+go4kDST_wrk.snhphase]; // in (inr)
|
fstp dword [WRK+go4kDST_wrk.snhphase]; // in (inr)
|
||||||
%endif
|
%endif
|
||||||
; // calc pregain and postgain
|
; // calc pregain and postgain
|
||||||
@ -794,13 +795,12 @@ go4kDST_func_mono:
|
|||||||
%endif
|
%endif
|
||||||
ret ; // out' (outr)
|
ret ; // out' (outr)
|
||||||
%ifdef GO4K_USE_DST_SH
|
%ifdef GO4K_USE_DST_SH
|
||||||
go4kDST_func_hold: ; // snh' in (inr)
|
go4kDST_func_hold: ; // in (inr)
|
||||||
fstp st0 ; // in (inr)
|
|
||||||
fstp st0 ; // (inr)
|
fstp st0 ; // (inr)
|
||||||
%ifdef GO4K_USE_DST_STEREO
|
%ifdef GO4K_USE_DST_STEREO
|
||||||
fstp st0
|
|
||||||
test al, byte STEREO
|
test al, byte STEREO
|
||||||
jz short go4kDST_func_monohold
|
jz short go4kDST_func_monohold ; // (inr)
|
||||||
|
fstp st0 ; //
|
||||||
fld dword [WRK+go4kDST_wrk.out2] ; // outr
|
fld dword [WRK+go4kDST_wrk.out2] ; // outr
|
||||||
go4kDST_func_monohold:
|
go4kDST_func_monohold:
|
||||||
%endif
|
%endif
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio 2010
|
# Visual Studio 14
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "4klang", "Go4kVSTi.vcxproj", "{107757EA-2FE1-4C5E-964F-DE7E482E253F}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "4klang", "Go4kVSTi.vcxproj", "{107757EA-2FE1-4C5E-964F-DE7E482E253F}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{D3783134-2AE6-4F36-A599-989377222068}") = "4klang2", "Go4kVSTi2.vcxproj", "{FA790F08-0B8E-43D9-A4B4-519AB01B820C}"
|
Project("{D3783134-2AE6-4F36-A599-989377222068}") = "4klang2", "Go4kVSTi2.vcxproj", "{FA790F08-0B8E-43D9-A4B4-519AB01B820C}"
|
||||||
|
@ -14,6 +14,9 @@ The repository contains the folders:
|
|||||||
- 4klang_source (the VSTi source as well as the needed 4klang.asm file for compilation in your exe)
|
- 4klang_source (the VSTi source as well as the needed 4klang.asm file for compilation in your exe)
|
||||||
|
|
||||||
The plugin project here is based on Visual Studio 2015, so that and above should compile out of the box.
|
The plugin project here is based on Visual Studio 2015, so that and above should compile out of the box.
|
||||||
|
The only additional thing you need for compilation is YASM/vsyasm, so download and follow the instructions here to get it running:
|
||||||
|
|
||||||
|
https://github.com/ShiftMediaProject/VSYASM
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user