Bink: fix audio sample conversion
This commit is contained in:
parent
1f5fc9343a
commit
ea39a84273
1 changed files with 2 additions and 2 deletions
|
@ -243,7 +243,7 @@ static int DecodeAudioFrame(struct binkMovie* aMovie)
|
|||
if (val > 32767)
|
||||
val = 32767;
|
||||
if (val < -32768)
|
||||
val = 32768;
|
||||
val = -32768;
|
||||
tempBuf[i] = (short)val;
|
||||
}
|
||||
} break;
|
||||
|
@ -266,7 +266,7 @@ static int DecodeAudioFrame(struct binkMovie* aMovie)
|
|||
if (val > 32767)
|
||||
val = 32767;
|
||||
if (val < -32768)
|
||||
val = 32768;
|
||||
val = -32768;
|
||||
tempBuf[(i*aMovie->alNumChannels)+j] = (short)val;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue