???
git-svn-id: https://svn.musicpd.org/mpd/trunk@977 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
be5bfc35fd
commit
76af5b2f90
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user