Browse Source

clamp value fix on vorbis decoding

Anis 11 years ago
parent
commit
ab31f9b212
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/source/core/ogg/oggVorbisDecoder.cpp

+ 1 - 1
Engine/source/core/ogg/oggVorbisDecoder.cpp

@@ -174,7 +174,7 @@ U32 OggVorbisDecoder::read( RawData** buffer, U32 num )
             S32 val = S32( pcmData[ c ][ n ] * 32767.f );
             S32 val = S32( pcmData[ c ][ n ] * 32767.f );
             if( val > 32767 )
             if( val > 32767 )
                val = 32767;
                val = 32767;
-            else if( val < -34768 )
+            else if( val < -32768 )
                val = -32768;
                val = -32768;
                
                
             *samplePtr = val;
             *samplePtr = val;