aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_utils.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-07 18:53:36 +0100
committerMax Kellermann <max@duempel.org>2009-01-07 18:53:36 +0100
commitb40428b3fd284f172da0ae630559176727026599 (patch)
treefd5399b38e5bf251e5459e01483bbc3cda01f832 /src/pcm_utils.h
parent8b19c74e8eb0036c697010d56ed1ee9b92facb72 (diff)
downloadmpd-b40428b3fd284f172da0ae630559176727026599.tar.gz
mpd-b40428b3fd284f172da0ae630559176727026599.tar.xz
mpd-b40428b3fd284f172da0ae630559176727026599.zip
pcm_utils: moved conversion code to pcm_convert.c
All what's left in pcm_utils.h is the pcm_range() utility function, which is only used internally by pcm_volume and pcm_mix.
Diffstat (limited to 'src/pcm_utils.h')
-rw-r--r--src/pcm_utils.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/pcm_utils.h b/src/pcm_utils.h
index 5d29420f3..020cdaceb 100644
--- a/src/pcm_utils.h
+++ b/src/pcm_utils.h
@@ -19,24 +19,9 @@
#ifndef MPD_PCM_UTILS_H
#define MPD_PCM_UTILS_H
-#include "pcm_resample.h"
-#include "pcm_dither.h"
-
#include <glib.h>
#include <stdint.h>
-#include <stddef.h>
-
-struct audio_format;
-
-struct pcm_convert_state {
- struct pcm_resample_state resample;
-
- struct pcm_dither_24 dither;
-
- /* Strict C99 doesn't allow empty structs */
- int error;
-};
/**
* Check if the value is within the range of the provided bit size,
@@ -52,15 +37,4 @@ pcm_range(int32_t sample, unsigned bits)
return sample;
}
-void pcm_convert_init(struct pcm_convert_state *state);
-
-size_t pcm_convert(const struct audio_format *inFormat,
- const char *inBuffer, size_t inSize,
- const struct audio_format *outFormat,
- char *outBuffer,
- struct pcm_convert_state *convState);
-
-size_t pcm_convert_size(const struct audio_format *inFormat, size_t inSize,
- const struct audio_format *outFormat);
-
#endif