mp3splt-gtk

- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

snackamp_control.h
1 /**********************************************************
2 *
3 * mp3splt-gtk -- utility based on mp3splt,
4 * for mp3/ogg splitting without decoding
5 *
6 * Copyright (c) 2005-2013 Alexandru Munteanu - m@ioalex.net
7 *
8 * http://mp3splt.sourceforge.net/
9 *
10 *********************************************************/
11
12 /**********************************************************
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
27 * USA.
28 *
29 *********************************************************/
30
31 /**********************************************************
32 * Filename: snackamp_control.h
33 *
34 * header of snackamp_control.c
35 *
36 *********************************************************/
37
38 #ifndef SNACKAMP_CONTROL_H
39
40 #define SNACKAMP_CONTROL_H
41
42 #include "external_includes.h"
43 #include "ui_types.h"
44
45 gint connect_snackamp(gint port, ui_state *ui);
46 gint disconnect_snackamp(ui_state *ui);
47 void snackamp_get_song_infos(gchar *total_infos, ui_state *ui);
48 gchar *snackamp_get_filename(ui_state *ui);
49 void snackamp_stop(ui_state *ui);
50 gint snackamp_get_playlist_number(ui_state *ui);
51 gchar *snackamp_get_title_song(ui_state *ui);
52 gint snackamp_get_time_elapsed(ui_state *ui);
53 void snackamp_start(ui_state *ui);
54 void snackamp_select_last_file(ui_state *ui);
55 void snackamp_play(ui_state *ui);
56 void snackamp_play_last_file(ui_state *ui);
57 void snackamp_add_files(GList *list, ui_state *ui);
58 void snackamp_set_volume(gint volume, ui_state *ui);
59 gint snackamp_get_volume(ui_state *ui);
60 void snackamp_start_with_songs(GList *list, ui_state *ui);
61 gint snackamp_is_running(ui_state *ui);
62 void snackamp_pause(ui_state *ui);
63 void snackamp_next(ui_state *ui);
64 void snackamp_prev(ui_state *ui);
65 void snackamp_jump(gint position, ui_state *ui);
66 gint snackamp_get_total_time(ui_state *ui);
67 gint snackamp_is_playing(ui_state *ui);
68 gint snackamp_is_paused(ui_state *ui);
69
70 #endif
71
snackamp_get_title_song
gchar * snackamp_get_title_song(ui_state *ui)
returns the title of the song
Definition: snackamp_control.c:404
snackamp_start
void snackamp_start(ui_state *ui)
starts snackamp
Definition: snackamp_control.c:428
snackamp_play
void snackamp_play(ui_state *ui)
plays a song
Definition: snackamp_control.c:461
snackamp_pause
void snackamp_pause(ui_state *ui)
pause a song
Definition: snackamp_control.c:536
snackamp_prev
void snackamp_prev(ui_state *ui)
changes to previous song
Definition: snackamp_control.c:550
snackamp_get_song_infos
void snackamp_get_song_infos(gchar *total_infos, ui_state *ui)
gets informations about the song
Definition: snackamp_control.c:286
snackamp_get_playlist_number
gint snackamp_get_playlist_number(ui_state *ui)
returns the number of songs of the playlist
Definition: snackamp_control.c:386
snackamp_get_total_time
gint snackamp_get_total_time(ui_state *ui)
returns total time of the current song
Definition: snackamp_control.c:586
snackamp_select_last_file
void snackamp_select_last_file(ui_state *ui)
selects the last file in the playlist
Definition: snackamp_control.c:454
snackamp_stop
void snackamp_stop(ui_state *ui)
stops playing a song
Definition: snackamp_control.c:379
ui_state
Definition: ui_types.h:485
snackamp_get_volume
gint snackamp_get_volume(ui_state *ui)
returns volume
Definition: snackamp_control.c:503
connect_snackamp
gint connect_snackamp(gint port, ui_state *ui)
connecting to the player to the port port
Definition: snackamp_control.c:48
disconnect_snackamp
gint disconnect_snackamp(ui_state *ui)
disconnecting with the player possibly returns an error
Definition: snackamp_control.c:200
snackamp_get_time_elapsed
gint snackamp_get_time_elapsed(ui_state *ui)
returns elapsed time
Definition: snackamp_control.c:418
snackamp_play_last_file
void snackamp_play_last_file(ui_state *ui)
plays the last file of the playlist
Definition: snackamp_control.c:468
snackamp_is_running
gint snackamp_is_running(ui_state *ui)
returns TRUE if snackamp is running; if not, FALSE
Definition: snackamp_control.c:520
snackamp_jump
void snackamp_jump(gint position, ui_state *ui)
jump to time
Definition: snackamp_control.c:565
snackamp_is_playing
gint snackamp_is_playing(ui_state *ui)
returns TRUE if snackamp is playing, else FALSE
Definition: snackamp_control.c:596
snackamp_add_files
void snackamp_add_files(GList *list, ui_state *ui)
add files to the snackamp playlist
Definition: snackamp_control.c:475
snackamp_is_paused
gint snackamp_is_paused(ui_state *ui)
returns TRUE if snackamp is paused, else FALSE
Definition: snackamp_control.c:619
snackamp_start_with_songs
void snackamp_start_with_songs(GList *list, ui_state *ui)
starts snackamp with songs
Definition: snackamp_control.c:513
snackamp_set_volume
void snackamp_set_volume(gint volume, ui_state *ui)
sets volume
Definition: snackamp_control.c:494
snackamp_get_filename
gchar * snackamp_get_filename(ui_state *ui)
returns the filename
Definition: snackamp_control.c:364
snackamp_next
void snackamp_next(ui_state *ui)
changes to next song
Definition: snackamp_control.c:543