diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-12-21 12:56:44 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-12-21 12:56:44 +0000 |
commit | 5f31761a4fa6995592cdd536c52f6ddac8151a89 (patch) | |
tree | aeec46d8f80b411df280cc2cc6bc124c2dbd6756 /src/xine-engine/audio_out.h | |
parent | eafb4f823a16426e7b2b30ada1b3cca47d8eeb3c (diff) | |
download | xine-lib-5f31761a4fa6995592cdd536c52f6ddac8151a89.tar.gz xine-lib-5f31761a4fa6995592cdd536c52f6ddac8151a89.tar.bz2 |
- add buf->decoder_info_ptr: portability for systems where pointer has
different sizeof than integer.
- add extra_info structure to pass informations from input/demuxers down
to the output frame. this can be used, for example, to pass the frame
number of a frame (when known by decoder). also, immediate benefict is
that we now have a slider which really shows the current position of
the playing stream. new fields can be added to extra_info keeping
binary compatibility
- bumpy everybody's api versions
CVS patchset: 3603
CVS date: 2002/12/21 12:56:44
Diffstat (limited to 'src/xine-engine/audio_out.h')
-rw-r--r-- | src/xine-engine/audio_out.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/xine-engine/audio_out.h b/src/xine-engine/audio_out.h index c68fc9d94..99fb40496 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.43 2002/11/30 22:09:42 miguelfreitas Exp $ + * $Id: audio_out.h,v 1.44 2002/12/21 12:56:52 miguelfreitas Exp $ */ #ifndef HAVE_AUDIO_OUT_H #define HAVE_AUDIO_OUT_H @@ -39,7 +39,7 @@ extern "C" { #endif -#define AUDIO_OUT_IFACE_VERSION 6 +#define AUDIO_OUT_IFACE_VERSION 7 /* * ao_driver_s contains the driver every audio output @@ -132,9 +132,11 @@ struct ao_driver_s { void *node; }; -/* - * ao_port_s contains the port every audio decoder talks to - */ +/* to access extra_info_t contents one have to include xine_internal.h */ +#ifndef extra_info_t +#define extra_info_t void +#endif + typedef struct audio_fifo_s audio_fifo_t; typedef struct audio_buffer_s audio_buffer_t; @@ -150,6 +152,12 @@ struct audio_buffer_s { int64_t vpts; uint32_t frame_header_count; uint32_t first_access_unit; + + /* extra info coming from input or demuxers */ + extra_info_t *extra_info; + + xine_stream_t *stream; /* stream that send that buffer */ + }; typedef struct ao_format_s ao_format_t; @@ -160,6 +168,10 @@ struct ao_format_s { int mode; }; +/* + * xine_audio_port_s contains the port every audio decoder talks to + */ + struct xine_audio_port_s { uint32_t (*get_capabilities) (xine_audio_port_t *this); /* for constants see below */ |