X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=server%2Fttsd_player.h;h=a59214b4393e85982af236d7c40285848499c1f4;hb=ea87a8a0d8625a248084d75731ac1fee5d063d13;hp=9a37340b6c790c0c8e5178a80c3036e0fa763daf;hpb=8e85e1471924fab56b2138f5867d61930651d9b6;p=platform%2Fcore%2Fuifw%2Ftts.git diff --git a/server/ttsd_player.h b/server/ttsd_player.h old mode 100755 new mode 100644 index 9a37340..a59214b --- a/server/ttsd_player.h +++ b/server/ttsd_player.h @@ -1,5 +1,5 @@ /* -* Copyright (c) 2012, 2013 Samsung Electronics Co., Ltd All Rights Reserved +* Copyright (c) 2011-2016 Samsung Electronics Co., Ltd All Rights Reserved * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -23,35 +23,35 @@ typedef enum { PLAYER_END_OF_PLAYING, PLAYER_EMPTY_SOUND_QUEUE, PLAYER_ERROR -}player_event_e; +} player_event_e; -typedef int (*player_result_callback_func)(player_event_e event, int uid, int utt_id); +typedef enum { + TTSD_PLAYER_STATE_NULL, + TTSD_PLAYER_STATE_PAUSED, + TTSD_PLAYER_STATE_PLAYING +} ttsd_player_state_e; /* * TTSD Player Interfaces */ -int ttsd_player_init(player_result_callback_func result_cb); +int ttsd_player_init(); int ttsd_player_release(void); -int ttsd_player_create_instance(const int uid); - -int ttsd_player_destroy_instance(const int uid); - -int ttsd_player_play(const int uid); +int ttsd_player_create_instance(int uid); -int ttsd_player_next_play(int uid); +int ttsd_player_destroy_instance(int uid); -int ttsd_player_stop(const int uid); +int ttsd_player_play(int uid); -int ttsd_player_pause(const int uid); +int ttsd_player_stop(int uid); -int ttsd_player_resume(const int uid); +int ttsd_player_clear(int uid); -int ttsd_player_get_current_client(); +int ttsd_player_pause(int uid); -int ttsd_player_get_current_utterance_id(const int uid); +int ttsd_player_resume(int uid); int ttsd_player_all_stop();