Fixed broken gaussian interpolation. [kode54]

This commit is contained in:
stainless
2001-10-06 22:32:18 +00:00
parent 1c165e8d34
commit 6da94406bc

View File

@@ -521,9 +521,9 @@ NEWSYM AdjustFrequency
je .cubicspline je .cubicspline
ja .notgaussian ja .notgaussian
; Copy from Gaussian to DSPInterP ; Copy from Gaussian to DSPInterP
mov ebx,DSPInterP mov ebx,DSPInterP+1024
mov edx,DSPInterP+2046 mov edx,DSPInterP+1022
mov esi,Gaussian+1022 mov esi,Gaussian
mov ecx,512 mov ecx,512
.intrploop .intrploop
xor eax,eax xor eax,eax
@@ -532,7 +532,7 @@ NEWSYM AdjustFrequency
mov [ebx],ax mov [ebx],ax
add ebx,2 add ebx,2
sub edx,2 sub edx,2
sub esi,2 add esi,2
dec ecx dec ecx
jnz .intrploop jnz .intrploop
jmp .notgaussian jmp .notgaussian
@@ -654,19 +654,6 @@ NEWSYM InitSPC
push ecx push ecx
push edx push edx
; Mirror Interpolation Table
mov ebx,Gaussian
mov ecx,512
.intloop
mov ax,[ebx]
or ax,ax
jz .nodec
dec ax
.nodec
mov [ebx],ax
dec ecx
jnz .intloop
call AdjustFrequency call AdjustFrequency
mov ecx,32768 mov ecx,32768