mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -04:00
fix(templates): unison sample oscillators crashed on amd64
This commit is contained in:
parent
b0918e65ff
commit
763c4f5136
@ -315,7 +315,7 @@ su_oscillat_gate_bit: ; stack: 0/1, let's call it x
|
|||||||
|
|
||||||
{{- if .HasCall "su_oscillat_sample"}}
|
{{- if .HasCall "su_oscillat_sample"}}
|
||||||
{{.Func "su_oscillat_sample"}}
|
{{.Func "su_oscillat_sample"}}
|
||||||
{{- .PushRegs .AX "SampleAx" .DX "SampleDx" .CX "SampleCx" .BX "SampleBx" | indent 4}} ; edx must be saved, eax & ecx if this is stereo osc
|
{{- .PushRegs .AX "SampleAx" .DX "SampleDx" .CX "SampleCx" .BX "SampleBx" .DI "SampleDi" | indent 4}} ; edx must be saved, eax & ecx if this is stereo osc
|
||||||
push {{.AX}}
|
push {{.AX}}
|
||||||
mov al, byte [{{.VAL}}-4] ; reuse "color" as the sample number
|
mov al, byte [{{.VAL}}-4] ; reuse "color" as the sample number
|
||||||
{{- if .Library}}
|
{{- if .Library}}
|
||||||
@ -342,7 +342,7 @@ su_oscillat_sample_not_looping:
|
|||||||
fild word [{{.Use "su_sample_table"}} + {{.DX}}*2]
|
fild word [{{.Use "su_sample_table"}} + {{.DX}}*2]
|
||||||
{{- .Float 32767.0 | .Prepare | indent 4}}
|
{{- .Float 32767.0 | .Prepare | indent 4}}
|
||||||
fdiv dword [{{.Float 32767.0 | .Use}}]
|
fdiv dword [{{.Float 32767.0 | .Use}}]
|
||||||
{{- .PopRegs .AX .DX .CX .BX | indent 4}}
|
{{- .PopRegs .AX .DX .CX .BX .DI | indent 4}}
|
||||||
ret
|
ret
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user