diff options
Diffstat (limited to 'src/player_control.h')
-rw-r--r-- | src/player_control.h | 39 |
1 files changed, 24 insertions, 15 deletions
diff --git a/src/player_control.h b/src/player_control.h index e6b19ee68..a18120ca1 100644 --- a/src/player_control.h +++ b/src/player_control.h @@ -107,39 +107,47 @@ void pc_song_deleted(const struct song *song); void -playerPlay(struct song *song); +pc_play(struct song *song); /** * see PLAYER_COMMAND_CANCEL */ void pc_cancel(void); -void playerSetPause(int pause_flag); +void +pc_set_pause(bool pause_flag); -void playerPause(void); +void +pc_pause(void); -void playerKill(void); +void +pc_kill(void); void pc_get_status(struct player_status *status); -enum player_state getPlayerState(void); +enum player_state +pc_get_state(void); -void clearPlayerError(void); +void +pc_clear_error(void); /** * Returns the human-readable message describing the last error during * playback, NULL if no error occurred. The caller has to free the * returned string. */ -char *getPlayerErrorStr(void); +char * +pc_get_error_message(void); -enum player_error getPlayerError(void); +enum player_error +pc_get_error(void); -void playerWait(void); +void +pc_stop(void); void -queueSong(struct song *song); +pc_enqueue_song(struct song *song); /** * Makes the player thread seek the specified song to a position. @@ -150,12 +158,13 @@ queueSong(struct song *song); bool pc_seek(struct song *song, float seek_time); -void setPlayerCrossFade(float crossFadeInSeconds); - -float getPlayerCrossFade(void); +void +pc_set_cross_fade(float cross_fade_seconds); -double getPlayerTotalPlayTime(void); +float +pc_get_cross_fade(void); -void playerInit(void); +double +pc_get_total_play_time(void); #endif |