39#ifndef PLAYER_CONTROL_H
41#define PLAYER_CONTROL_H
43#include "external_includes.h"
45#include "snackamp_control.h"
46#include "audacious_control.h"
47#include "gstreamer_control.h"
49#define PLAYER_AUDACIOUS 1
50#define PLAYER_SNACKAMP 2
51#define PLAYER_GSTREAMER 3
55 #define DEFAULT_PLAYER PLAYER_SNACKAMP
57 #define DEFAULT_PLAYER PLAYER_AUDACIOUS
60 #define DEFAULT_PLAYER PLAYER_GSTREAMER
void player_add_files(GList *list, ui_state *ui)
add files to playlist
gint player_is_paused(ui_state *ui)
Check if the player is paused.
void player_play(ui_state *ui)
plays the song
gint player_get_total_time(ui_state *ui)
returns total time of the song
void player_stop(ui_state *ui)
stops the song
void player_start_add_files(GList *list, ui_state *ui)
start player and add files to playlist
gchar * player_get_title(ui_state *ui)
Get the title of the song.
void player_start_play_with_songs(GList *list, ui_state *ui)
starts the player
void player_get_song_infos(gchar *total_infos, ui_state *ui)
get infos about the song
void player_add_files_and_select(GList *list, ui_state *ui)
add files to playlist
gint player_quit(ui_state *ui)
quits the player
void player_set_volume(gint volume, ui_state *ui)
sets the volume of the player
void player_prev(ui_state *ui)
pass to the previous song
gint player_get_playlist_number(ui_state *ui)
returns the number of songs in the playlist
void player_seek(gint position, ui_state *ui)
jumps to a position in the song
gchar * player_get_filename(ui_state *ui)
gets the filename of the current song
void player_start(ui_state *ui)
starts the player
gint player_is_running(ui_state *ui)
returns FALSE if the player is not running, else TRUE
gint player_is_playing(ui_state *ui)
returns TRUE if the player is playing, else FALSE
gint player_get_elapsed_time(ui_state *ui)
returns the elapsed time of the player
gint player_get_volume(ui_state *ui)
gets the volume of the player
void player_next(ui_state *ui)
pass to the next song
void player_pause(ui_state *ui)
pause the song
void player_add_play_files(GList *list, ui_state *ui)
add files to playlist