aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_utils.h
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-05-26 16:39:55 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-05-26 16:39:55 +0000
commit355d18a593c4e79aae733dbd0bb3157b3b5f7014 (patch)
treea7e4227dde83330eed683c37621a6544811ee94f /src/pcm_utils.h
parentb3726bcc93c4d7eb8b2b7a4e37a76b467b5bfd29 (diff)
downloadmpd-355d18a593c4e79aae733dbd0bb3157b3b5f7014.tar.gz
mpd-355d18a593c4e79aae733dbd0bb3157b3b5f7014.tar.xz
mpd-355d18a593c4e79aae733dbd0bb3157b3b5f7014.zip
Make pcm_convertAudioFormat return the buffer size. This is necessary
because lsr may return less than the input buffer size, and the rest of the audio code needs to know the new size. This fixes the clicking that was introduced with recent changes to the lsr code. A huge thanks to remiss for figuring this out. git-svn-id: https://svn.musicpd.org/mpd/trunk@6273 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/pcm_utils.h')
-rw-r--r--src/pcm_utils.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pcm_utils.h b/src/pcm_utils.h
index 800ac27f4..2c6610a75 100644
--- a/src/pcm_utils.h
+++ b/src/pcm_utils.h
@@ -48,9 +48,9 @@ void pcm_volumeChange(char *buffer, int bufferSize, AudioFormat * format,
void pcm_mix(char *buffer1, char *buffer2, size_t bufferSize1,
size_t bufferSize2, AudioFormat * format, float portion1);
-void pcm_convertAudioFormat(AudioFormat * inFormat, char *inBuffer,
- size_t inSize, AudioFormat * outFormat,
- char *outBuffer, ConvState *convState);
+size_t pcm_convertAudioFormat(AudioFormat * inFormat, char *inBuffer,
+ size_t inSize, AudioFormat * outFormat,
+ char *outBuffer, ConvState *convState);
size_t pcm_sizeOfConvBuffer(AudioFormat * inFormat, size_t inSize,
AudioFormat * outFormat);