diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-05-24 22:09:44 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-05-24 22:09:44 +0000 |
commit | 1c7516dd16d95fdbf862db13153810a92644f330 (patch) | |
tree | 6e5c9514c00f534bb4c6ac135b9dc46f8bb59ee7 /src/xine-engine/audio_decoder.c | |
parent | 1c13f131692c6c42021a45dcc209f7ec6ef611a7 (diff) | |
download | xine-lib-1c7516dd16d95fdbf862db13153810a92644f330.tar.gz xine-lib-1c7516dd16d95fdbf862db13153810a92644f330.tar.bz2 |
- dxr3 cleanup from Michael Roitzsch <amalthea@freenet.de>
- audio fifo size adjust
CVS patchset: 1937
CVS date: 2002/05/24 22:09:44
Diffstat (limited to 'src/xine-engine/audio_decoder.c')
-rw-r--r-- | src/xine-engine/audio_decoder.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/xine-engine/audio_decoder.c b/src/xine-engine/audio_decoder.c index 4a137b2df..8ad6d46ec 100644 --- a/src/xine-engine/audio_decoder.c +++ b/src/xine-engine/audio_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_decoder.c,v 1.72 2002/04/29 23:32:00 jcdutton Exp $ + * $Id: audio_decoder.c,v 1.73 2002/05/24 22:09:44 miguelfreitas Exp $ * * * functions that implement audio decoding @@ -266,7 +266,14 @@ void audio_decoder_init (xine_t *this) { return; } - this->audio_fifo = fifo_buffer_new (50, 8192); + /* The fifo size is based on dvd playback where buffers are filled + * with 2k of data. With 230 buffers and a typical audio data rate + * of 1.8 Mbit/s (four ac3 streams), the fifo can hold about 2 seconds + * of audio, wich should be enough to compensate for drive delays. + * We provide buffers of 8k size instead of 2k for demuxers sending + * larger chunks. + */ + this->audio_fifo = fifo_buffer_new (230, 8192); this->audio_channel_user = -1; this->audio_channel_auto = 0; this->audio_type = 0; |