diff options
| author | Timotej Lazar <timotej.lazar@araneo.si> | 2020-05-31 10:54:52 +0200 |
|---|---|---|
| committer | Timotej Lazar <timotej.lazar@araneo.si> | 2020-05-31 10:55:11 +0200 |
| commit | ea39a84273cbb7a3d9bc07bf8e6588e1efe675e3 (patch) | |
| tree | c4673758ee0096c5fe9d1fd0959fe673326db1ca /src | |
| parent | 1f5fc9343ad3e11cd66f85762c9a15233c302dbe (diff) | |
Bink: fix audio sample conversion
Diffstat (limited to 'src')
| -rw-r--r-- | src/bink.c | 4 |
1 files changed, 2 insertions, 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; } } |
