diff options
author | Max Kellermann <max@duempel.org> | 2008-04-12 04:15:30 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-04-12 04:15:30 +0000 |
commit | f7e97c9a893619c86c16cf1c5417d52de3d77a70 (patch) | |
tree | a755d8fd5e65a5cf7e97e5326e6be0829eb71a1a /src/pcm_utils.c | |
parent | 05c41a80ed4c62ea66bdf5aa95d1b5b0fdc79d30 (diff) | |
download | mpd-f7e97c9a893619c86c16cf1c5417d52de3d77a70.tar.gz mpd-f7e97c9a893619c86c16cf1c5417d52de3d77a70.tar.xz mpd-f7e97c9a893619c86c16cf1c5417d52de3d77a70.zip |
constant pointers
There were some const pointers missing in the previous const-cleanup
patch.
git-svn-id: https://svn.musicpd.org/mpd/trunk@7290 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/pcm_utils.c')
-rw-r--r-- | src/pcm_utils.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pcm_utils.c b/src/pcm_utils.c index 6a97fff37..171b2288c 100644 --- a/src/pcm_utils.c +++ b/src/pcm_utils.c @@ -182,7 +182,7 @@ out: #ifdef HAVE_LIBSAMPLERATE static size_t pcm_convertSampleRate(mpd_sint8 channels, mpd_uint32 inSampleRate, - char *inBuffer, size_t inSize, + const char *inBuffer, size_t inSize, mpd_uint32 outSampleRate, char *outBuffer, size_t outSize, ConvState *convState) { @@ -297,7 +297,7 @@ static size_t pcm_convertSampleRate(mpd_sint8 channels, mpd_uint32 inSampleRate, } #endif /* !HAVE_LIBSAMPLERATE */ -static char *pcm_convertChannels(mpd_sint8 channels, char *inBuffer, +static char *pcm_convertChannels(mpd_sint8 channels, const char *inBuffer, size_t inSize, size_t *outSize) { static char *buf; @@ -351,8 +351,8 @@ static char *pcm_convertChannels(mpd_sint8 channels, char *inBuffer, return outBuffer; } -static char *pcm_convertTo16bit(mpd_sint8 bits, const char *inBuffer, - size_t inSize, size_t *outSize) +static const char *pcm_convertTo16bit(mpd_sint8 bits, const char *inBuffer, + size_t inSize, size_t *outSize) { static char *buf; static size_t len; @@ -393,7 +393,7 @@ size_t pcm_convertAudioFormat(AudioFormat * inFormat, const char *inBuffer, size_t inSize, AudioFormat * outFormat, char *outBuffer, ConvState *convState) { - char *buf; + const char *buf; size_t len; size_t outSize = pcm_sizeOfConvBuffer(inFormat, inSize, outFormat); |