divide by 32000 to reduce volume

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6268 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty
2004-01-25 06:35:25 +00:00
parent 33732c29f1
commit 89ea295e8e
@@ -328,6 +328,10 @@ SpeexDecoder::Decode(void *buffer, int64 *frameCount,
if (fHeader->nb_channels == 2) {
speex_decode_stereo((float*)out_buffer, fSpeexOutputLength, fStereoState);
}
for (int i = 0 ; i < fSpeexOutputLength/fFrameSize ; i++) {
*((float*)out_buffer) /= 32000;
out_buffer += fFrameSize;
}
out_buffer += fSpeexOutputLength;
out_bytes_needed -= fSpeexOutputLength;
}