summaryrefslogtreecommitdiff
path: root/src/xine-engine/audio_out.h
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2004-01-07 19:52:42 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2004-01-07 19:52:42 +0000
commit5e25dd8a73f15e8116da5ce8fda14f8f671473ce (patch)
treed47d0a7c256fe25905f4fcd66302dbee68c5faa9 /src/xine-engine/audio_out.h
parent6f75f546fd6e928245911e8ebcea680a7c9046b6 (diff)
downloadxine-lib-5e25dd8a73f15e8116da5ce8fda14f8f671473ce.tar.gz
xine-lib-5e25dd8a73f15e8116da5ce8fda14f8f671473ce.tar.bz2
the new, refined post plugin architecture
* post plugins are now much safer (fewer races/inconsistencies) and easier to write * all post plugins are ported to the new architecture (and should work) * ports can now be opened and closed with a NULL stream CVS patchset: 6007 CVS date: 2004/01/07 19:52:42
Diffstat (limited to 'src/xine-engine/audio_out.h')
-rw-r--r--src/xine-engine/audio_out.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xine-engine/audio_out.h b/src/xine-engine/audio_out.h
index bef0bd409..23591e60d 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.65 2003/12/31 23:29:06 jcdutton Exp $
+ * $Id: audio_out.h,v 1.66 2004/01/07 19:52:42 mroi Exp $
*/
#ifndef HAVE_AUDIO_OUT_H
#define HAVE_AUDIO_OUT_H
@@ -185,6 +185,8 @@ struct xine_audio_port_s {
/* open audio driver for audio output
* return value: 0:failure, >0:output sample rate
*/
+ /* when you are not a full-blown stream, but still need to open the port
+ * (e.g. you are a post plugin) it is legal to pass a NULL stream */
int (*open) (xine_audio_port_t *, xine_stream_t *stream,
uint32_t bits, uint32_t rate, int mode);
@@ -201,6 +203,8 @@ struct xine_audio_port_s {
void (*put_buffer) (xine_audio_port_t *, audio_buffer_t *buf, xine_stream_t *stream);
/* audio driver is no longer used by decoder => close */
+ /* when you are not a full-blown stream, but still need to close the port
+ * (e.g. you are a post plugin) it is legal to pass a NULL stream */
void (*close) (xine_audio_port_t *self, xine_stream_t *stream);
/* called on xine exit */