aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_utils.c
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.c
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 '')
-rw-r--r--src/pcm_utils.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pcm_utils.c b/src/pcm_utils.c
index 200c657de..d80291088 100644
--- a/src/pcm_utils.c
+++ b/src/pcm_utils.c
@@ -247,7 +247,8 @@ out:
static size_t pcm_convertSampleRate(int8_t channels, uint32_t inSampleRate,
const int16_t *inBuffer, size_t inSize,
uint32_t outSampleRate, int16_t *outBuffer,
- size_t outSize, ConvState *convState)
+ size_t outSize,
+ struct pcm_convert_state *convState)
{
static int convalgo = -1;
SRC_DATA *data = &convState->data;
@@ -325,7 +326,7 @@ static size_t pcm_convertSampleRate(int8_t channels, uint32_t inSampleRate,
mpd_unused size_t inSize,
uint32_t outSampleRate, char *outBuffer,
size_t outSize,
- mpd_unused ConvState *convState)
+ mpd_unused struct pcm_convert_state *convState)
{
uint32_t rd_dat = 0;
uint32_t wr_dat = 0;
@@ -509,7 +510,8 @@ pcm_convertTo16bit(uint8_t bits, const void *inBuffer,
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)
{
const int16_t *buf;
size_t len = 0;