mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 01:35:07 +00:00
fix DPCM to 16-bit
This commit is contained in:
parent
b31ab408db
commit
07624f6012
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ void DivSample::render() {
|
||||||
case 1: { // DPCM
|
case 1: { // DPCM
|
||||||
int accum=0;
|
int accum=0;
|
||||||
for (unsigned int i=0; i<samples; i++) {
|
for (unsigned int i=0; i<samples; i++) {
|
||||||
accum+=((data1[i>>3]>>(i&7))&1)?1:-1;
|
accum+=((dataDPCM[i>>3]>>(i&7))&1)?1:-1;
|
||||||
if (accum>63) accum=63;
|
if (accum>63) accum=63;
|
||||||
if (accum<-64) accum=-64;
|
if (accum<-64) accum=-64;
|
||||||
data16[i]=accum*512;
|
data16[i]=accum*512;
|
||||||
|
|
Loading…
Reference in a new issue