player_control: inline trivial functions
This commit is contained in:
parent
050ba302cb
commit
16951099d1
@ -228,12 +228,6 @@ pc_get_status(struct player_control *pc, struct player_status *status)
|
|||||||
player_unlock(pc);
|
player_unlock(pc);
|
||||||
}
|
}
|
||||||
|
|
||||||
enum player_state
|
|
||||||
pc_get_state(struct player_control *pc)
|
|
||||||
{
|
|
||||||
return pc->state;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
pc_clear_error(struct player_control *pc)
|
pc_clear_error(struct player_control *pc)
|
||||||
{
|
{
|
||||||
@ -243,12 +237,6 @@ pc_clear_error(struct player_control *pc)
|
|||||||
player_unlock(pc);
|
player_unlock(pc);
|
||||||
}
|
}
|
||||||
|
|
||||||
enum player_error
|
|
||||||
pc_get_error(struct player_control *pc)
|
|
||||||
{
|
|
||||||
return pc->error;
|
|
||||||
}
|
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
pc_errored_song_uri(struct player_control *pc)
|
pc_errored_song_uri(struct player_control *pc)
|
||||||
{
|
{
|
||||||
@ -348,12 +336,6 @@ pc_set_cross_fade(struct player_control *pc, float cross_fade_seconds)
|
|||||||
idle_add(IDLE_OPTIONS);
|
idle_add(IDLE_OPTIONS);
|
||||||
}
|
}
|
||||||
|
|
||||||
float
|
|
||||||
pc_get_mixramp_db(const struct player_control *pc)
|
|
||||||
{
|
|
||||||
return pc->mixramp_db;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
pc_set_mixramp_db(struct player_control *pc, float mixramp_db)
|
pc_set_mixramp_db(struct player_control *pc, float mixramp_db)
|
||||||
{
|
{
|
||||||
@ -362,12 +344,6 @@ pc_set_mixramp_db(struct player_control *pc, float mixramp_db)
|
|||||||
idle_add(IDLE_OPTIONS);
|
idle_add(IDLE_OPTIONS);
|
||||||
}
|
}
|
||||||
|
|
||||||
float
|
|
||||||
pc_get_mixramp_delay(const struct player_control *pc)
|
|
||||||
{
|
|
||||||
return pc->mixramp_delay_seconds;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
pc_set_mixramp_delay(struct player_control *pc, float mixramp_delay_seconds)
|
pc_set_mixramp_delay(struct player_control *pc, float mixramp_delay_seconds)
|
||||||
{
|
{
|
||||||
@ -375,9 +351,3 @@ pc_set_mixramp_delay(struct player_control *pc, float mixramp_delay_seconds)
|
|||||||
|
|
||||||
idle_add(IDLE_OPTIONS);
|
idle_add(IDLE_OPTIONS);
|
||||||
}
|
}
|
||||||
|
|
||||||
double
|
|
||||||
pc_get_total_play_time(const struct player_control *pc)
|
|
||||||
{
|
|
||||||
return pc->total_play_time;
|
|
||||||
}
|
|
||||||
|
@ -213,8 +213,11 @@ pc_kill(struct player_control *pc);
|
|||||||
void
|
void
|
||||||
pc_get_status(struct player_control *pc, struct player_status *status);
|
pc_get_status(struct player_control *pc, struct player_status *status);
|
||||||
|
|
||||||
enum player_state
|
static inline enum player_state
|
||||||
pc_get_state(struct player_control *pc);
|
pc_get_state(struct player_control *pc)
|
||||||
|
{
|
||||||
|
return pc->state;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
pc_clear_error(struct player_control *pc);
|
pc_clear_error(struct player_control *pc);
|
||||||
@ -227,8 +230,11 @@ pc_clear_error(struct player_control *pc);
|
|||||||
char *
|
char *
|
||||||
pc_get_error_message(struct player_control *pc);
|
pc_get_error_message(struct player_control *pc);
|
||||||
|
|
||||||
enum player_error
|
static inline enum player_error
|
||||||
pc_get_error(struct player_control *pc);
|
pc_get_error(struct player_control *pc)
|
||||||
|
{
|
||||||
|
return pc->error;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
pc_stop(struct player_control *pc);
|
pc_stop(struct player_control *pc);
|
||||||
@ -257,16 +263,25 @@ pc_get_cross_fade(const struct player_control *pc);
|
|||||||
void
|
void
|
||||||
pc_set_mixramp_db(struct player_control *pc, float mixramp_db);
|
pc_set_mixramp_db(struct player_control *pc, float mixramp_db);
|
||||||
|
|
||||||
float
|
static inline float
|
||||||
pc_get_mixramp_db(const struct player_control *pc);
|
pc_get_mixramp_db(const struct player_control *pc)
|
||||||
|
{
|
||||||
|
return pc->mixramp_db;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
pc_set_mixramp_delay(struct player_control *pc, float mixramp_delay_seconds);
|
pc_set_mixramp_delay(struct player_control *pc, float mixramp_delay_seconds);
|
||||||
|
|
||||||
float
|
static inline float
|
||||||
pc_get_mixramp_delay(const struct player_control *pc);
|
pc_get_mixramp_delay(const struct player_control *pc)
|
||||||
|
{
|
||||||
|
return pc->mixramp_delay_seconds;
|
||||||
|
}
|
||||||
|
|
||||||
double
|
static inline double
|
||||||
pc_get_total_play_time(const struct player_control *pc);
|
pc_get_total_play_time(const struct player_control *pc)
|
||||||
|
{
|
||||||
|
return pc->total_play_time;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user