mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 01:35:07 +00:00
sample 8-bit blep resample fix
This commit is contained in:
parent
96715ed88c
commit
eb70086234
1 changed files with 2 additions and 2 deletions
|
@ -587,8 +587,8 @@ bool DivSample::resampleSinc(double r) {
|
||||||
result+=s[j]*t2[7-j];
|
result+=s[j]*t2[7-j];
|
||||||
result+=s[8+j]*t1[j];
|
result+=s[8+j]*t1[j];
|
||||||
}
|
}
|
||||||
if (result<-32768) result=-32768;
|
if (result<-128) result=-128;
|
||||||
if (result>32767) result=32767;
|
if (result>127) result=127;
|
||||||
if (i>=8) {
|
if (i>=8) {
|
||||||
data8[i-8]=result;
|
data8[i-8]=result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue