24 #ifndef VITUNES_GSTPLAYER_H
25 #define VITUNES_GSTPLAYER_H
37 void (*playnext_cb)(void);
38 void (*notice_cb)(
char *, ...);
39 void (*error_cb)(
char *, ...);
40 void (*fatal_cb)(
char *, ...);
47 void gstplayer_init();
48 void gstplayer_cleanup();
50 void gstplayer_stop();
51 void gstplayer_play(
const char *);
52 void gstplayer_pause();
54 void gstplayer_seek(
int);
55 void gstplayer_volume_step(
float);
57 float gstplayer_get_position();
58 float gstplayer_get_volume();
59 bool gstplayer_is_playing();
60 bool gstplayer_is_paused();
62 void gstplayer_set_callback_playnext(
void (*f)(
void));
63 void gstplayer_set_callback_notice(
void (*f)(
char *, ...));
64 void gstplayer_set_callback_error(
void (*f)(
char *, ...));
65 void gstplayer_set_callback_fatal(
void (*f)(
char *, ...));
67 void gstplayer_monitor();