From 0847ca4ec2e137d0eaa235d653217e8a913187f8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 10 Oct 2011 08:11:04 +0200 Subject: pcm_{mix,volume}: pass only sample_format to pcm_mix() The other audio_format attributes are not used. --- src/pcm_volume.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/pcm_volume.h') diff --git a/src/pcm_volume.h b/src/pcm_volume.h index b389dee3c..3fd722e77 100644 --- a/src/pcm_volume.h +++ b/src/pcm_volume.h @@ -21,6 +21,7 @@ #define PCM_VOLUME_H #include "pcm_prng.h" +#include "audio_format.h" #include #include @@ -62,13 +63,13 @@ pcm_volume_dither(void) * * @param buffer the PCM buffer * @param length the length of the PCM buffer - * @param format the audio format of the PCM buffer + * @param format the sample format of the PCM buffer * @param volume the volume between 0 and #PCM_VOLUME_1 * @return true on success, false if the audio format is not supported */ bool pcm_volume(void *buffer, int length, - const struct audio_format *format, + enum sample_format format, int volume); #endif -- cgit v1.2.3