diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2007-05-24 21:15:37 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2007-05-24 21:15:37 +0000 |
commit | 2814b7cfc650a73146b8e18fd0a55d54c3ec613d (patch) | |
tree | b632095b1b73c8c310e6cdd8c92ca52807061740 /src/audioOutput.h | |
parent | 7ba357a04e75c51f898e9418cab24d10c74ab37c (diff) | |
download | mpd-2814b7cfc650a73146b8e18fd0a55d54c3ec613d.tar.gz mpd-2814b7cfc650a73146b8e18fd0a55d54c3ec613d.tar.xz mpd-2814b7cfc650a73146b8e18fd0a55d54c3ec613d.zip |
Reverting to the full lsr API. Turns out the simple API needs all of the
audio at once, so it won't work for us. The old full API code was still
heavily broken, as each call to pcm_convertSampleRate() used the same
state, even if it was processing two streams of audio. The new code keeps
a separate state for each audio stream that's being converted.
git-svn-id: https://svn.musicpd.org/mpd/trunk@6255 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/audioOutput.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/audioOutput.h b/src/audioOutput.h index cba445a3c..bcbe7997d 100644 --- a/src/audioOutput.h +++ b/src/audioOutput.h @@ -21,6 +21,7 @@ #include "../config.h" +#include "pcm_utils.h" #include "mpd_types.h" #include "audio.h" #include "tag.h" @@ -66,6 +67,7 @@ struct _AudioOutput { AudioFormat inAudioFormat; AudioFormat outAudioFormat; AudioFormat reqAudioFormat; + ConvState convState; char *convBuffer; int convBufferLen; int sameInAndOutFormats; |