comparison src/audacious/auddrct.c @ 2748:4f2fd69771dc trunk

[svn] - auddrct: more calls implemented (part 5)
author yaz
date Fri, 11 May 2007 20:37:03 -0700
parents 72781ef7ece3
children c2613269f913
comparison
equal deleted inserted replaced
2747:8b7e1929aec1 2748:4f2fd69771dc
149 audacious_drct_get_stopped ( void ) 149 audacious_drct_get_stopped ( void )
150 { 150 {
151 return !playback_get_playing(); 151 return !playback_get_playing();
152 } 152 }
153 153
154 void
155 audacious_drct_get_info( gint *rate, gint *freq, gint *nch)
156 {
157 playback_get_sample_params(rate, freq, nch);
158 }
159
154 gint 160 gint
155 audacious_drct_get_time ( void ) 161 audacious_drct_get_time ( void )
156 { 162 {
157 gint time; 163 gint time;
158 if (playback_get_playing()) 164 if (playback_get_playing())
229 audacious_drct_pl_shuffle_toggle( void ) 235 audacious_drct_pl_shuffle_toggle( void )
230 { 236 {
231 mainwin_shuffle_pushed(!cfg.shuffle); 237 mainwin_shuffle_pushed(!cfg.shuffle);
232 return; 238 return;
233 } 239 }
240
241 gchar *
242 audacious_drct_pl_get_title( gint pos )
243 {
244 return playlist_get_songtitle(playlist_get_active(), pos);
245 }
246
247 gint
248 audacious_drct_pl_get_time( gint pos )
249 {
250 return playlist_get_songtime(playlist_get_active(), pos);
251 }
252
253 gint
254 audacious_drct_pl_get_pos( void )
255 {
256 return playlist_get_position_nolock(playlist_get_active());
257 }
258
259 gchar *
260 audacious_drct_pl_get_file( gint pos )
261 {
262 return playlist_get_filename(playlist_get_active(), pos);
263 }