Commit 76af5b2f authored by Warren Dukes's avatar Warren Dukes

???

git-svn-id: https://svn.musicpd.org/mpd/trunk@977 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent be5bfc35
...@@ -224,7 +224,7 @@ void pcm_convertAudioFormat(AudioFormat * inFormat, char * inBuffer, size_t ...@@ -224,7 +224,7 @@ void pcm_convertAudioFormat(AudioFormat * inFormat, char * inBuffer, size_t
mpd_sint16 * inptr = (mpd_sint16 *)dataChannelConv; mpd_sint16 * inptr = (mpd_sint16 *)dataChannelConv;
mpd_sint16 * outptr = (mpd_sint16 *)outBuffer; mpd_sint16 * outptr = (mpd_sint16 *)outBuffer;
mpd_uint32 nlen = (((dataChannelLen >> shift) * mpd_uint32 nlen = (((dataChannelLen >> shift) *
(mpd_uint32)(outFormat->sampleRate)) / (outFormat->sampleRate)) /
inFormat->sampleRate); inFormat->sampleRate);
nlen <<= shift; nlen <<= shift;
in_samples = dataChannelLen >> shift; in_samples = dataChannelLen >> shift;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment