Commit cadceaab authored by Thomas Guillem's avatar Thomas Guillem

playback_service: add is_playing

parent 4598060f
......@@ -361,6 +361,15 @@ playback_service_pause(playback_service *p_ps)
return 0;
}
bool
playback_service_is_playing(playback_service *p_ps)
{
if (!p_ps->b_started)
return false;
return emotion_object_play_get(p_ps->p_e);
}
double
playback_service_get_pos(playback_service *p_ps)
{
......
......@@ -79,6 +79,9 @@ playback_service_play(playback_service *p_ps);
int
playback_service_pause(playback_service *p_ps);
bool
playback_service_is_playing(playback_service *p_ps);
double
playback_service_get_pos(playback_service *p_ps);
......
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