aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcm_utils.h')
-rw-r--r--src/pcm_utils.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/pcm_utils.h b/src/pcm_utils.h
index 44ea5aa16..61262048f 100644
--- a/src/pcm_utils.h
+++ b/src/pcm_utils.h
@@ -29,11 +29,6 @@
struct audio_format;
-enum {
- /** this value means "100% volume" */
- PCM_VOLUME_1 = 1000,
-};
-
struct pcm_convert_state {
struct pcm_resample_state resample;
@@ -57,20 +52,6 @@ pcm_range(int32_t sample, unsigned bits)
return sample;
}
-/**
- * Converts a float value (0.0 = silence, 1.0 = 100% volume) to an
- * integer volume value (1000 = 100%).
- */
-static inline int
-pcm_float_to_volume(float volume)
-{
- return volume * PCM_VOLUME_1 + 0.5;
-}
-
-void pcm_volume(char *buffer, int bufferSize,
- const struct audio_format *format,
- int volume);
-
void pcm_mix(char *buffer1, const char *buffer2, size_t size,
const struct audio_format *format, float portion1);