Commit 7c63e33a authored by Ludovic Fauvet's avatar Ludovic Fauvet

playback service: add support for spu

parent 2538dca1
......@@ -680,3 +680,23 @@ playback_service_list_get_item_at(playback_service *p_ps, unsigned int i_index)
{
return media_list_get_item_at(p_ps->p_ml, i_index);
}
Eina_List*
playback_service_spu_get_list(playback_service *p_ps)
{
Eina_List *list = NULL;
int count = emotion_object_spu_channel_count(p_ps->p_e);
for (int i = 0; i < count; i++)
{
list = eina_list_append(list, emotion_object_spu_channel_name_get(p_ps->p_e, i));
}
return list;
}
void
playback_service_spu_set(playback_service *p_ps, int spu)
{
emotion_object_spu_channel_set(p_ps->p_e, spu);
}
......@@ -154,4 +154,10 @@ playback_service_list_get_item(playback_service *p_ps);
media_item *
playback_service_list_get_item_at(playback_service *p_ps, unsigned int i_index);
Eina_List*
playback_service_spu_get_list(playback_service *p_ps);
void
playback_service_spu_set(playback_service *p_ps, int spu);
#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