aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_utils.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-10 19:54:32 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-10 19:54:32 +0000
commit76af5b2f90e5a2c7a310d649c6bd36ca08c69dfa (patch)
treeeda0111686409dac999b86ed92ab77a896310f09 /src/pcm_utils.c
parentbe5bfc35fd789a4b8dccf2a7cfb7cb3c1b17f1cd (diff)
downloadmpd-76af5b2f90e5a2c7a310d649c6bd36ca08c69dfa.tar.gz
mpd-76af5b2f90e5a2c7a310d649c6bd36ca08c69dfa.tar.xz
mpd-76af5b2f90e5a2c7a310d649c6bd36ca08c69dfa.zip
???
git-svn-id: https://svn.musicpd.org/mpd/trunk@977 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/pcm_utils.c')
-rw-r--r--src/pcm_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm_utils.c b/src/pcm_utils.c
index e7872a272..fcd84bffa 100644
--- a/src/pcm_utils.c
+++ b/src/pcm_utils.c
@@ -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;