From fb416964d62487c13c9a89fb7f4284945b9544a7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 21 Oct 2008 21:59:43 +0200 Subject: pcm_utils: renamed ConvState to struct pcm_convert_state No CamelCase, and a struct instead of a typedef. --- src/pcm_utils.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/pcm_utils.h') 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); -- cgit v1.2.3