changeset 806:d51a251b542c trunk

[svn] - add get_written_time(), get_output_time().
author nenolod
date Wed, 08 Mar 2006 06:47:02 -0800
parents b8b9d7f5d371
children df3412dc33c4
files audacious/output.c audacious/output.h
diffstat 2 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/audacious/output.c	Tue Mar 07 11:47:20 2006 -0800
+++ b/audacious/output.c	Wed Mar 08 06:47:02 2006 -0800
@@ -173,6 +173,24 @@
         *(guint16 *) it = GUINT16_SWAP_LE_BE(*(guint16 *) it);
 }
 
+/* called by input plugin to peek at the output plugin's write progress */
+gint
+get_written_time(void)
+{
+    OutputPlugin *op = get_current_output_plugin();
+
+    return op->written_time();
+}
+
+/* called by input plugin to peek at the output plugin's output progress */
+gint
+get_output_time(void)
+{
+    OutputPlugin *op = get_current_output_plugin();
+
+    return op->output_time();
+}
+
 /* called by input plugin when data is ready */
 void
 produce_audio(gint time,        /* position             */
--- a/audacious/output.h	Tue Mar 07 11:47:20 2006 -0800
+++ b/audacious/output.h	Wed Mar 08 06:47:02 2006 -0800
@@ -43,6 +43,9 @@
 void output_set_eq(gboolean, gfloat, gfloat *);
 void produce_audio(gint, AFormat, gint, gint, gpointer, int *);
 
+gint get_written_time(void);
+gint get_output_time(void);
+
 extern OutputPluginData op_data;
 
 #endif