aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-01 20:11:41 +0100
committerMax Kellermann <max@duempel.org>2009-03-01 20:11:41 +0100
commit0579b6ed27a995d6c700f3684b023fb2fda7e616 (patch)
tree56e81c69b2c7a7d928cb04fc020fa12b742375da /src
parent4194f4b18b957b4a013a3f50d5fde67770d5ccdb (diff)
downloadmpd-0579b6ed27a995d6c700f3684b023fb2fda7e616.tar.gz
mpd-0579b6ed27a995d6c700f3684b023fb2fda7e616.tar.xz
mpd-0579b6ed27a995d6c700f3684b023fb2fda7e616.zip
pcm_volume: no CamelCase
Diffstat (limited to '')
-rw-r--r--src/pcm_volume.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pcm_volume.c b/src/pcm_volume.c
index cb1d82b00..383caecca 100644
--- a/src/pcm_volume.c
+++ b/src/pcm_volume.c
@@ -113,7 +113,7 @@ pcm_volume_change_24(int32_t *buffer, unsigned num_samples, int volume)
}
void
-pcm_volume(void *buffer, int bufferSize,
+pcm_volume(void *buffer, int length,
const struct audio_format *format,
int volume)
{
@@ -121,22 +121,22 @@ pcm_volume(void *buffer, int bufferSize,
return;
if (volume <= 0) {
- memset(buffer, 0, bufferSize);
+ memset(buffer, 0, length);
return;
}
switch (format->bits) {
case 8:
- pcm_volume_change_8((int8_t *)buffer, bufferSize, volume);
+ pcm_volume_change_8((int8_t *)buffer, length, volume);
break;
case 16:
- pcm_volume_change_16((int16_t *)buffer, bufferSize / 2,
+ pcm_volume_change_16((int16_t *)buffer, length / 2,
volume);
break;
case 24:
- pcm_volume_change_24((int32_t*)buffer, bufferSize / 4,
+ pcm_volume_change_24((int32_t*)buffer, length / 4,
volume);
break;