mp3splt-gtk
xmms_control.c File Reference
#include <stdlib.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <time.h>
#include <unistd.h>
#include <string.h>
#include <audacious/audctrl.h>
#include <audacious/dbus.h>
#include "player.h"
Include dependency graph for xmms_control.c:

Go to the source code of this file.

Functions

void myxmms_add_files (GList *list)
gchar * myxmms_get_filename ()
gint myxmms_get_playlist_number ()
void myxmms_get_song_infos (gchar *total_infos)
gint myxmms_get_time_elapsed ()
gchar * myxmms_get_title_song ()
gint myxmms_get_total_time ()
gint myxmms_get_volume ()
gint myxmms_is_paused ()
gint myxmms_is_playing ()
gint myxmms_is_running ()
void myxmms_jump (gint position)
void myxmms_next ()
void myxmms_pause ()
void myxmms_play ()
void myxmms_play_last_file ()
void myxmms_prev ()
void myxmms_quit ()
void myxmms_select_last_file ()
void myxmms_set_volume (gint volume)
void myxmms_start ()
void myxmms_start_with_songs (GList *list)
void myxmms_stop ()

Variables

DBusGProxy * dbus_proxy = NULL

Detailed Description


xmms control

this file contains the functions that control the xmms player

Definition in file xmms_control.c.


Function Documentation

void myxmms_add_files ( GList *  list)

add files to the xmms playlist

Definition at line 193 of file xmms_control.c.

Referenced by myxmms_start_with_songs(), player_add_files(), and player_add_files_and_select().

Here is the caller graph for this function:

gchar* myxmms_get_filename ( )

returns the filename

The filename is allocated by this function and must be g_free'ed after use.

Definition at line 108 of file xmms_control.c.

Referenced by player_get_filename().

Here is the caller graph for this function:

returns the number of songs in the playlist

Definition at line 128 of file xmms_control.c.

Referenced by player_get_playlist_number().

Here is the caller graph for this function:

void myxmms_get_song_infos ( gchar *  total_infos)

Acquires informations about the song.

Definition at line 61 of file xmms_control.c.

Referenced by player_get_song_infos().

Here is the caller graph for this function:

returns elapsed time

Definition at line 151 of file xmms_control.c.

Referenced by player_get_elapsed_time().

Here is the caller graph for this function:

returns the title of the song

The filename is allocated by this function and must be g_free'ed after use.

Definition at line 137 of file xmms_control.c.

Referenced by player_get_title().

Here is the caller graph for this function:

returns the total duration of the current song

Definition at line 306 of file xmms_control.c.

Referenced by player_get_total_time().

Here is the caller graph for this function:

returns volume level

Definition at line 224 of file xmms_control.c.

Referenced by player_get_volume().

Here is the caller graph for this function:

gint myxmms_is_paused ( )

returns TRUE if xmms is paused, if not, FALSE

Definition at line 261 of file xmms_control.c.

Referenced by player_is_paused().

Here is the caller graph for this function:

returns TRUE if xmms is playing, else FALSE

Definition at line 314 of file xmms_control.c.

Referenced by player_is_playing().

Here is the caller graph for this function:

returns TRUE if xmms is running; if not, FALSE

Definition at line 241 of file xmms_control.c.

Referenced by player_is_running().

Here is the caller graph for this function:

void myxmms_jump ( gint  position)

jump to time

Definition at line 300 of file xmms_control.c.

Referenced by player_jump().

Here is the caller graph for this function:

void myxmms_next ( )

Switch to the next song.

Definition at line 288 of file xmms_control.c.

Referenced by player_next().

Here is the caller graph for this function:

void myxmms_pause ( )

Pause playing the current song.

Definition at line 282 of file xmms_control.c.

Referenced by player_pause().

Here is the caller graph for this function:

void myxmms_play ( )

Start playing the current song.

Definition at line 270 of file xmms_control.c.

Referenced by player_play().

Here is the caller graph for this function:

plays the last file of the playlist

Definition at line 186 of file xmms_control.c.

References myxmms_select_last_file().

Referenced by player_add_play_files(), and player_start_play_with_songs().

Here is the call graph for this function:

Here is the caller graph for this function:

void myxmms_prev ( )

Switch to the previous song.

Definition at line 294 of file xmms_control.c.

Referenced by player_prev().

Here is the caller graph for this function:

void myxmms_quit ( )

quits the player

Definition at line 323 of file xmms_control.c.

selects the last file in the playlist

Definition at line 178 of file xmms_control.c.

Referenced by myxmms_play_last_file(), and player_add_files_and_select().

Here is the caller graph for this function:

void myxmms_set_volume ( gint  volume)

sets the volume level

Definition at line 218 of file xmms_control.c.

Referenced by player_set_volume().

Here is the caller graph for this function:

void myxmms_start ( )

starts xmms

Definition at line 157 of file xmms_control.c.

Referenced by myxmms_start_with_songs(), and player_start().

Here is the caller graph for this function:

void myxmms_start_with_songs ( GList *  list)

starts xmms with songs

Parameters:
listThe list of the songs to start xmms with
Todo:
Which format is this list in?

Definition at line 234 of file xmms_control.c.

References myxmms_add_files(), and myxmms_start().

Referenced by player_start_add_files(), and player_start_play_with_songs().

Here is the call graph for this function:

Here is the caller graph for this function:

void myxmms_stop ( )

Stop playing the current song.

Definition at line 276 of file xmms_control.c.

Referenced by player_stop().

Here is the caller graph for this function: