aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_utils.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-04-12 04:07:11 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 04:07:11 +0000
commit623a86f389dc3c1cce52b1d0e6ef64d27b26f023 (patch)
treebe24c359d81fab206eb9dd34706a5c9c5d8316c9 /src/pcm_utils.h
parent83e937320b947b4f70600f7517f64ec81c87e289 (diff)
downloadmpd-623a86f389dc3c1cce52b1d0e6ef64d27b26f023.tar.gz
mpd-623a86f389dc3c1cce52b1d0e6ef64d27b26f023.tar.xz
mpd-623a86f389dc3c1cce52b1d0e6ef64d27b26f023.zip
use constant pointers when possible
It is a good practice to constify pointers when their dereferenced data is not modified within the functions or its descendants. git-svn-id: https://svn.musicpd.org/mpd/trunk@7234 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/pcm_utils.h')
-rw-r--r--src/pcm_utils.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pcm_utils.h b/src/pcm_utils.h
index 7362cb7b8..752fac3e7 100644
--- a/src/pcm_utils.h
+++ b/src/pcm_utils.h
@@ -45,13 +45,13 @@ typedef struct _ConvState {
void pcm_volumeChange(char *buffer, int bufferSize, AudioFormat * format,
int volume);
-void pcm_mix(char *buffer1, char *buffer2, size_t bufferSize1,
- size_t bufferSize2, AudioFormat * format, float portion1);
+void pcm_mix(char *buffer1, const char *buffer2, size_t bufferSize1,
+ size_t bufferSize2, const AudioFormat * format, float portion1);
-size_t pcm_convertAudioFormat(AudioFormat * inFormat, char *inBuffer,
+size_t pcm_convertAudioFormat(AudioFormat * inFormat, const char *inBuffer,
size_t inSize, AudioFormat * outFormat,
char *outBuffer, ConvState *convState);
-size_t pcm_sizeOfConvBuffer(AudioFormat * inFormat, size_t inSize,
- AudioFormat * outFormat);
+size_t pcm_sizeOfConvBuffer(const AudioFormat * inFormat, size_t inSize,
+ const AudioFormat * outFormat);
#endif