diff options
author | Max Kellermann <max@duempel.org> | 2011-10-10 08:11:04 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-10-10 10:24:05 +0200 |
commit | 0847ca4ec2e137d0eaa235d653217e8a913187f8 (patch) | |
tree | 2d00b5b7e7700ee216890b83f86c6528090079a1 /src/pcm_volume.h | |
parent | 572d8d0cc486dce64c0f6239cc27598068c1085d (diff) | |
download | mpd-0847ca4ec2e137d0eaa235d653217e8a913187f8.tar.gz mpd-0847ca4ec2e137d0eaa235d653217e8a913187f8.tar.xz mpd-0847ca4ec2e137d0eaa235d653217e8a913187f8.zip |
pcm_{mix,volume}: pass only sample_format to pcm_mix()
The other audio_format attributes are not used.
Diffstat (limited to '')
-rw-r--r-- | src/pcm_volume.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 <stdint.h> #include <stdbool.h> @@ -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 |