![]() |
![]() |
![]() |
Rhythmbox Development Reference Manual | ![]() |
---|---|---|---|---|
enum RBPlayerError; #define RB_PLAYER_TICK_HZ #define RB_PLAYER_ERROR GQuark rb_player_error_quark (void); typedef RBPlayerPrivate; RBPlayer* rb_player_new (GError **error); gboolean rb_player_open (RBPlayer *mp, const char *uri, GError **error); gboolean rb_player_opened (RBPlayer *mp); gboolean rb_player_close (RBPlayer *mp, GError **error); gboolean rb_player_play (RBPlayer *mp, GError **error); void rb_player_pause (RBPlayer *mp); gboolean rb_player_playing (RBPlayer *mp); void rb_player_set_volume (RBPlayer *mp, float volume); float rb_player_get_volume (RBPlayer *mp); void rb_player_set_replaygain (RBPlayer *mp, double track_gain, double track_peak, double album_gain, double album_peak); gboolean rb_player_seekable (RBPlayer *mp); void rb_player_set_time (RBPlayer *mp, long time); long rb_player_get_time (RBPlayer *mp);
typedef enum { RB_PLAYER_ERROR_NO_INPUT_PLUGIN, RB_PLAYER_ERROR_NO_QUEUE_PLUGIN, RB_PLAYER_ERROR_NO_TYPEFIND_PLUGIN, RB_PLAYER_ERROR_NO_DEMUX_PLUGIN, RB_PLAYER_ERROR_NO_VOLUME_PLUGIN, RB_PLAYER_ERROR_DEMUX_FAILED, RB_PLAYER_ERROR_NO_AUDIO, RB_PLAYER_ERROR_GENERAL, RB_PLAYER_ERROR_INTERNAL } RBPlayerError;
gboolean rb_player_open (RBPlayer *mp, const char *uri, GError **error);
mp : |
|
uri : |
|
error : |
|
Returns : |
void rb_player_set_replaygain (RBPlayer *mp, double track_gain, double track_peak, double album_gain, double album_peak);
mp : |
|
track_gain : |
|
track_peak : |
|
album_gain : |
|
album_peak : |