diff options
author | Max Kellermann <max@duempel.org> | 2009-03-02 09:42:16 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-02 09:42:16 +0100 |
commit | b7bfa24f22a3a5a7709ce425ffc84bd4bb64be08 (patch) | |
tree | 661eef7a3aa2d5d4b153d23b5703c35502bc2262 /src/pcm_volume.h | |
parent | 0579b6ed27a995d6c700f3684b023fb2fda7e616 (diff) | |
download | mpd-b7bfa24f22a3a5a7709ce425ffc84bd4bb64be08.tar.gz mpd-b7bfa24f22a3a5a7709ce425ffc84bd4bb64be08.tar.xz mpd-b7bfa24f22a3a5a7709ce425ffc84bd4bb64be08.zip |
pcm_volume: return bool
Don't abort MPD when a sample format is not supported by pcm_volume().
Diffstat (limited to '')
-rw-r--r-- | src/pcm_volume.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pcm_volume.h b/src/pcm_volume.h index 1b5e7fb0e..e21ea6f56 100644 --- a/src/pcm_volume.h +++ b/src/pcm_volume.h @@ -22,6 +22,7 @@ #include "pcm_prng.h" #include <stdint.h> +#include <stdbool.h> enum { /** this value means "100% volume" */ @@ -62,8 +63,9 @@ pcm_volume_dither(void) * @param length the length of the PCM buffer * @param format the audio 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 */ -void +bool pcm_volume(void *buffer, int length, const struct audio_format *format, int volume); |