changeset 2748:4f2fd69771dc trunk

[svn] - auddrct: more calls implemented (part 5)
author yaz
date Fri, 11 May 2007 20:37:03 -0700
parents 8b7e1929aec1
children 96e7c0385973
files ChangeLog src/audacious/auddrct.c src/audacious/auddrct.h src/audacious/build_stamp.c
diffstat 4 files changed, 44 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri May 11 19:31:36 2007 -0700
+++ b/ChangeLog	Fri May 11 20:37:03 2007 -0700
@@ -1,3 +1,11 @@
+2007-05-12 02:31:36 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [4520]
+  - change the appearance that backtraces are presented as
+  
+  trunk/src/audtool/audtool.c |    6 +++---
+  1 file changed, 3 insertions(+), 3 deletions(-)
+
+
 2007-05-12 02:31:07 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [4518]
   - adjust build order for libaudclient and audacious. reported by Crazy_Hopper.
--- a/src/audacious/auddrct.c	Fri May 11 19:31:36 2007 -0700
+++ b/src/audacious/auddrct.c	Fri May 11 20:37:03 2007 -0700
@@ -151,6 +151,12 @@
   return !playback_get_playing();
 }
 
+void
+audacious_drct_get_info( gint *rate, gint *freq, gint *nch)
+{
+    playback_get_sample_params(rate, freq, nch);
+}
+
 gint
 audacious_drct_get_time ( void )
 {
@@ -231,3 +237,27 @@
   mainwin_shuffle_pushed(!cfg.shuffle);
   return;
 }
+
+gchar *
+audacious_drct_pl_get_title( gint pos )
+{
+    return playlist_get_songtitle(playlist_get_active(), pos);
+}
+
+gint
+audacious_drct_pl_get_time( gint pos )
+{
+    return playlist_get_songtime(playlist_get_active(), pos);
+}
+
+gint
+audacious_drct_pl_get_pos( void )
+{
+    return playlist_get_position_nolock(playlist_get_active());
+}
+
+gchar *
+audacious_drct_pl_get_file( gint pos )
+{
+    return playlist_get_filename(playlist_get_active(), pos);
+}
--- a/src/audacious/auddrct.h	Fri May 11 19:31:36 2007 -0700
+++ b/src/audacious/auddrct.h	Fri May 11 20:37:03 2007 -0700
@@ -40,6 +40,7 @@
 gboolean audacious_drct_get_playing ( void );
 gboolean audacious_drct_get_paused ( void );
 gboolean audacious_drct_get_stopped ( void );
+void audacious_drct_get_info( gint *rate, gint *freq, gint *nch);
 gint audacious_drct_get_time ( void );
 void audacious_drct_seek ( guint pos );
 void audacious_drct_get_volume( gint *vl, gint *vr );
@@ -52,3 +53,7 @@
 void audacious_drct_pl_repeat_toggle ( void );
 gboolean audacious_drct_pl_repeat_is_shuffled ( void );
 void audacious_drct_pl_shuffle_toggle ( void );
+gchar *audacious_drct_pl_get_title( gint pos );
+gint audacious_drct_pl_get_time( gint pos );
+gint audacious_drct_pl_get_pos( void );
+gchar *audacious_drct_pl_get_file( gint pos );
--- a/src/audacious/build_stamp.c	Fri May 11 19:31:36 2007 -0700
+++ b/src/audacious/build_stamp.c	Fri May 11 20:37:03 2007 -0700
@@ -1,2 +1,2 @@
 #include <glib.h>
-const gchar *svn_stamp = "20070512-4518";
+const gchar *svn_stamp = "20070512-4520";