git-svn-id: https://svn.musicpd.org/mpd/trunk@977 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-05-10 19:54:32 +00:00
parent be5bfc35fd
commit 76af5b2f90

View File

@ -224,7 +224,7 @@ void pcm_convertAudioFormat(AudioFormat * inFormat, char * inBuffer, size_t
mpd_sint16 * inptr = (mpd_sint16 *)dataChannelConv;
mpd_sint16 * outptr = (mpd_sint16 *)outBuffer;
mpd_uint32 nlen = (((dataChannelLen >> shift) *
(mpd_uint32)(outFormat->sampleRate)) /
(outFormat->sampleRate)) /
inFormat->sampleRate);
nlen <<= shift;
in_samples = dataChannelLen >> shift;