aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_utils.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-21 21:59:43 +0200
committerMax Kellermann <max@duempel.org>2008-10-21 21:59:43 +0200
commitfb416964d62487c13c9a89fb7f4284945b9544a7 (patch)
treed9f16b38379101643a6c40144e3a512e78a1702c /src/pcm_utils.h
parenta7888c4998d52a6c85a0c5bd80c340a1a6eee867 (diff)
downloadmpd-fb416964d62487c13c9a89fb7f4284945b9544a7.tar.gz
mpd-fb416964d62487c13c9a89fb7f4284945b9544a7.tar.xz
mpd-fb416964d62487c13c9a89fb7f4284945b9544a7.zip
pcm_utils: renamed ConvState to struct pcm_convert_state
No CamelCase, and a struct instead of a typedef.
Diffstat (limited to 'src/pcm_utils.h')
-rw-r--r--src/pcm_utils.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pcm_utils.h b/src/pcm_utils.h
index 59ced1331..4041e2f64 100644
--- a/src/pcm_utils.h
+++ b/src/pcm_utils.h
@@ -30,7 +30,7 @@
struct audio_format;
-typedef struct _ConvState {
+struct pcm_convert_state {
#ifdef HAVE_LIBSAMPLERATE
SRC_STATE *state;
SRC_DATA data;
@@ -42,7 +42,7 @@ typedef struct _ConvState {
#endif
/* Strict C99 doesn't allow empty structs */
int error;
-} ConvState;
+};
void pcm_volumeChange(char *buffer, int bufferSize, const struct audio_format *format,
int volume);
@@ -53,7 +53,8 @@ void pcm_mix(char *buffer1, const char *buffer2, size_t size,
size_t pcm_convertAudioFormat(const struct audio_format *inFormat,
const char *inBuffer, size_t inSize,
const struct audio_format *outFormat,
- char *outBuffer, ConvState *convState);
+ char *outBuffer,
+ struct pcm_convert_state *convState);
size_t pcm_sizeOfConvBuffer(const struct audio_format *inFormat, size_t inSize,
const struct audio_format *outFormat);