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.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);