Commit 96de1d1b authored by Christophe Massiot's avatar Christophe Massiot

Aout3 developer documentation, cont'd.

parent f52ae778
This diff is collapsed.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* aout_internal.h : internal defines for audio output * aout_internal.h : internal defines for audio output
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: aout_internal.h,v 1.15 2002/09/02 23:17:05 massiot Exp $ * $Id: aout_internal.h,v 1.16 2002/09/06 23:15:44 massiot Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -171,7 +171,7 @@ struct aout_instance_t ...@@ -171,7 +171,7 @@ struct aout_instance_t
/* Locks : please note that if you need several of these locks, it is /* Locks : please note that if you need several of these locks, it is
* mandatory (to avoid deadlocks) to take them in the following order : * mandatory (to avoid deadlocks) to take them in the following order :
* p_input->lock, mixer_lock, output_fifo_lock, input_fifo_lock. * p_input->lock, mixer_lock, output_fifo_lock, input_fifos_lock.
* --Meuuh */ * --Meuuh */
/* When input_fifos_lock is taken, none of the p_input->fifo structures /* When input_fifos_lock is taken, none of the p_input->fifo structures
* can be read or modified by a third-party thread. */ * can be read or modified by a third-party thread. */
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* a52.c: A/52 basic parser * a52.c: A/52 basic parser
***************************************************************************** *****************************************************************************
* Copyright (C) 2001-2002 VideoLAN * Copyright (C) 2001-2002 VideoLAN
* $Id: a52.c,v 1.9 2002/09/02 23:17:05 massiot Exp $ * $Id: a52.c,v 1.10 2002/09/06 23:15:44 massiot Exp $
* *
* Authors: Stphane Borel <stef@via.ecp.fr> * Authors: Stphane Borel <stef@via.ecp.fr>
* Christophe Massiot <massiot@via.ecp.fr> * Christophe Massiot <massiot@via.ecp.fr>
...@@ -225,7 +225,12 @@ static int RunDecoder( decoder_fifo_t *p_fifo ) ...@@ -225,7 +225,12 @@ static int RunDecoder( decoder_fifo_t *p_fifo )
memcpy( p_buffer->p_buffer, p_header, 7 ); memcpy( p_buffer->p_buffer, p_header, 7 );
GetChunk( &p_dec->bit_stream, p_buffer->p_buffer + 7, GetChunk( &p_dec->bit_stream, p_buffer->p_buffer + 7,
i_frame_size - 7 ); i_frame_size - 7 );
if( p_dec->p_fifo->b_die ) break; if( p_dec->p_fifo->b_die )
{
aout_BufferDelete( p_dec->p_aout, p_dec->p_aout_input,
p_buffer );
break;
}
/* Send the buffer to the mixer. */ /* Send the buffer to the mixer. */
aout_BufferPlay( p_dec->p_aout, p_dec->p_aout_input, p_buffer ); aout_BufferPlay( p_dec->p_aout, p_dec->p_aout_input, p_buffer );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment