Commit df659bdf authored by Ludovic Fauvet's avatar Ludovic Fauvet

playback service: add playback speed getter and setter

parent 49c6da2c
......@@ -946,3 +946,15 @@ playback_service_get_repeat_mode(playback_service *p_ps)
{
return media_list_get_repeat_mode(get_media_list(p_ps, PLAYLIST_CONTEXT_AUDIO));
}
double
playback_service_get_play_speed(playback_service *p_ps)
{
return emotion_object_play_speed_get(p_ps->p_e);
}
void
playback_service_set_play_speed(playback_service *p_ps, double rate)
{
emotion_object_play_speed_set(p_ps->p_e, rate);
}
......@@ -179,4 +179,10 @@ playback_service_set_repeat_mode(playback_service *p_ps, enum PLAYLIST_REPEAT i_
enum PLAYLIST_REPEAT
playback_service_get_repeat_mode(playback_service *p_ps);
double
playback_service_get_play_speed(playback_service *p_ps);
void
playback_service_set_play_speed(playback_service *p_ps, double rate);
#endif /* PLAYBACK_SERVICE_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment