diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-06-23 19:45:47 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-06-23 19:45:47 +0000 |
commit | ee8df4f4d8e2088da9dbc38e3230fad1de64908f (patch) | |
tree | 945c14e183c1c36bf91050e036efa67ae205e5e3 /src/xine-engine/audio_out.h | |
parent | 5e9ccc6f1f1689a317e574f48d3acedce3d11a40 (diff) | |
download | xine-lib-ee8df4f4d8e2088da9dbc38e3230fad1de64908f.tar.gz xine-lib-ee8df4f4d8e2088da9dbc38e3230fad1de64908f.tar.bz2 |
fixed race between metronom and xine engine, small audio plugin api change to improve responsiveness (unfinished), small demux_mpeg_block bugfix (alignment for DVD plugin)
CVS patchset: 218
CVS date: 2001/06/23 19:45:47
Diffstat (limited to 'src/xine-engine/audio_out.h')
-rw-r--r-- | src/xine-engine/audio_out.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/xine-engine/audio_out.h b/src/xine-engine/audio_out.h index 4c983bc0d..6b4e7a173 100644 --- a/src/xine-engine/audio_out.h +++ b/src/xine-engine/audio_out.h @@ -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_out.h,v 1.5 2001/06/18 10:49:31 guenter Exp $ + * $Id: audio_out.h,v 1.6 2001/06/23 19:45:47 guenter Exp $ */ #ifndef HAVE_AUDIO_OUT_H #define HAVE_AUDIO_OUT_H @@ -65,13 +65,17 @@ struct ao_functions_s { int (*open)(ao_functions_t *this, uint32_t bits, uint32_t rate, int mode); /* - * write audio data to output buffer - may block + * write audio data to output buffer * audio driver must sync sample playback with metronom + * return value: + * 1 => audio samples were processed ok + * 0 => audio samples were not yet processed, + * call write_audio_data with the _same_ samples again */ - void (*write_audio_data)(ao_functions_t *this, - int16_t* audio_data, uint32_t num_samples, - uint32_t pts); + int (*write_audio_data)(ao_functions_t *this, + int16_t* audio_data, uint32_t num_samples, + uint32_t pts); /* * this is called when the decoder no longer uses the audio |