aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_volume.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/pcm_volume.h4
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);