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/outputBuffer.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/outputBuffer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/outputBuffer.h b/src/outputBuffer.h index fecff91e0..f690941d4 100644 --- a/src/outputBuffer.h +++ b/src/outputBuffer.h @@ -19,6 +19,7 @@ #ifndef OUTPUT_BUFFER_H #define OUTPUT_BUFFER_H +#include "pcm_utils.h" #include "mpd_types.h" #include "decode.h" #include "audio.h" @@ -39,6 +40,7 @@ typedef struct _OutputBuffer { mpd_sint16 volatile begin; mpd_sint16 volatile end; AudioFormat audioFormat; + ConvState convState; MetadataChunk metadataChunks[BUFFERED_METACHUNKS]; mpd_sint8 metaChunkSet[BUFFERED_METACHUNKS]; mpd_sint8 *volatile metaChunk; |