mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
Merge pull request #970 from Lopuska/patch-5
clamp value fix on vorbis decoding
This commit is contained in:
commit
cd993e0607
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ U32 OggVorbisDecoder::read( RawData** buffer, U32 num )
|
|||
S32 val = S32( pcmData[ c ][ n ] * 32767.f );
|
||||
if( val > 32767 )
|
||||
val = 32767;
|
||||
else if( val < -34768 )
|
||||
else if( val < -32768 )
|
||||
val = -32768;
|
||||
|
||||
*samplePtr = val;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue