mp3splt-gtk: src/player_control.h Source File

mp3splt-gtk 0.9.3.1519

Loading...
Searching...
No Matches
player_control.h
1/**********************************************************
2 *
3 * mp3splt-gtk -- utility based on mp3splt,
4 * for mp3/ogg splitting without decoding
5 *
6 * Copyright: (C) 2005-2014 Alexandru Munteanu
7 * Contact: m@ioalex.net
8 *
9 *
10 * http://mp3splt.sourceforge.net/
11 *
12 *********************************************************/
13
14/**********************************************************
15 *
16 * This program is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU General Public License
18 * as published by the Free Software Foundation; either version 2
19 * of the License, or (at your option) any later version.
20 *
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, write to the Free Software
28 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
29 * USA.
30 *
31 *********************************************************/
32
33/**********************************************************
34 * Filename: player_control.h
35 *
36 * header of player_control.c, defines constants, etc..
37 *********************************************************/
38
39#ifndef PLAYER_CONTROL_H
40
41#define PLAYER_CONTROL_H
42
43#include "external_includes.h"
44
45#include "snackamp_control.h"
46#include "audacious_control.h"
47#include "gstreamer_control.h"
48
49#define PLAYER_AUDACIOUS 1
50#define PLAYER_SNACKAMP 2
51#define PLAYER_GSTREAMER 3
52
53#ifdef NO_GSTREAMER
54 #ifdef NO_AUDACIOUS
55 #define DEFAULT_PLAYER PLAYER_SNACKAMP
56 #else
57 #define DEFAULT_PLAYER PLAYER_AUDACIOUS
58 #endif
59#else
60 #define DEFAULT_PLAYER PLAYER_GSTREAMER
61#endif
62
63gint player_get_elapsed_time(ui_state *ui);
64gint player_get_total_time(ui_state *ui);
65gint player_is_running(ui_state *ui);
66void player_start(ui_state *ui);
67void player_start_add_files(GList *list, ui_state *ui);
68void player_add_files(GList *list, ui_state *ui);
69void player_add_files_and_select(GList *list, ui_state *ui);
70void player_add_play_files(GList *list, ui_state *ui);
71void player_start_play_with_songs(GList *list, ui_state *ui);
72void player_play(ui_state *ui);
73void player_stop(ui_state *ui);
74void player_pause(ui_state *ui);
75void player_next(ui_state *ui);
76void player_prev(ui_state *ui);
77void player_seek(gint position, ui_state *ui);
78void player_get_song_infos(gchar *total_infos, ui_state *ui);
79gint player_is_playing(ui_state *ui);
80gint player_is_paused(ui_state *ui);
81gchar *player_get_filename(ui_state *ui);
82gchar *player_get_title(ui_state *ui);
83gint player_get_volume(ui_state *ui);
84void player_set_volume(gint volume, ui_state *ui);
85gint player_get_playlist_number(ui_state *ui);
86gint player_quit(ui_state *ui);
87
88#endif
89
player_add_files
void player_add_files(GList *list, ui_state *ui)
add files to playlist
Definition player_control.c:166
player_is_paused
gint player_is_paused(ui_state *ui)
Check if the player is paused.
Definition player_control.c:457
player_play
void player_play(ui_state *ui)
plays the song
Definition player_control.c:266
player_get_total_time
gint player_get_total_time(ui_state *ui)
returns total time of the song
Definition player_control.c:70
player_stop
void player_stop(ui_state *ui)
stops the song
Definition player_control.c:289
player_start_add_files
void player_start_add_files(GList *list, ui_state *ui)
start player and add files to playlist
Definition player_control.c:143
player_get_title
gchar * player_get_title(ui_state *ui)
Get the title of the song.
Definition player_control.c:513
player_start_play_with_songs
void player_start_play_with_songs(GList *list, ui_state *ui)
starts the player
Definition player_control.c:240
player_get_song_infos
void player_get_song_infos(gchar *total_infos, ui_state *ui)
get infos about the song
Definition player_control.c:409
player_add_files_and_select
void player_add_files_and_select(GList *list, ui_state *ui)
add files to playlist
Definition player_control.c:189
player_quit
gint player_quit(ui_state *ui)
quits the player
Definition player_control.c:611
player_set_volume
void player_set_volume(gint volume, ui_state *ui)
sets the volume of the player
Definition player_control.c:563
player_prev
void player_prev(ui_state *ui)
pass to the previous song
Definition player_control.c:358
player_get_playlist_number
gint player_get_playlist_number(ui_state *ui)
returns the number of songs in the playlist
Definition player_control.c:586
player_seek
void player_seek(gint position, ui_state *ui)
jumps to a position in the song
Definition player_control.c:381
player_get_filename
gchar * player_get_filename(ui_state *ui)
gets the filename of the current song
Definition player_control.c:485
player_start
void player_start(ui_state *ui)
starts the player
Definition player_control.c:120
player_is_running
gint player_is_running(ui_state *ui)
returns FALSE if the player is not running, else TRUE
Definition player_control.c:95
player_is_playing
gint player_is_playing(ui_state *ui)
returns TRUE if the player is playing, else FALSE
Definition player_control.c:432
player_get_elapsed_time
gint player_get_elapsed_time(ui_state *ui)
returns the elapsed time of the player
Definition player_control.c:45
player_get_volume
gint player_get_volume(ui_state *ui)
gets the volume of the player
Definition player_control.c:538
player_next
void player_next(ui_state *ui)
pass to the next song
Definition player_control.c:335
player_pause
void player_pause(ui_state *ui)
pause the song
Definition player_control.c:312
player_add_play_files
void player_add_play_files(GList *list, ui_state *ui)
add files to playlist
Definition player_control.c:215
ui_state
Definition ui_types.h:509