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:
@@ -328,6 +328,10 @@ SpeexDecoder::Decode(void *buffer, int64 *frameCount,
|
|||||||
if (fHeader->nb_channels == 2) {
|
if (fHeader->nb_channels == 2) {
|
||||||
speex_decode_stereo((float*)out_buffer, fSpeexOutputLength, fStereoState);
|
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_buffer += fSpeexOutputLength;
|
||||||
out_bytes_needed -= fSpeexOutputLength;
|
out_bytes_needed -= fSpeexOutputLength;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user