2 * Copyright (c) 2012, 2013 Samsung Electronics Co., Ltd All Rights Reserved
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 * http://www.apache.org/licenses/LICENSE-2.0
7 * Unless required by applicable law or agreed to in writing, software
8 * distributed under the License is distributed on an "AS IS" BASIS,
9 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 * See the License for the specific language governing permissions and
11 * limitations under the License.
15 #ifndef __TTSD_PLAYER_H_
16 #define __TTSD_PLAYER_H_
23 PLAYER_END_OF_PLAYING,
24 PLAYER_EMPTY_SOUND_QUEUE,
29 TTSD_PLAYER_STATE_NULL,
30 TTSD_PLAYER_STATE_PAUSED,
31 TTSD_PLAYER_STATE_PLAYING
34 typedef int (*player_result_callback_func)(player_event_e event, int uid, int utt_id);
37 * TTSD Player Interfaces
40 int ttsd_player_init(player_result_callback_func result_cb);
42 int ttsd_player_release(void);
44 int ttsd_player_create_instance(int uid);
46 int ttsd_player_destroy_instance(int uid);
48 int ttsd_player_play(int uid);
50 int ttsd_player_next_play(int uid);
52 int ttsd_player_stop(int uid);
54 int ttsd_player_pause(int uid);
56 int ttsd_player_resume(int uid);
58 int ttsd_player_get_state(int uid, ttsd_player_state_e* state);
60 int ttsd_player_get_current_client();
62 int ttsd_player_get_current_utterance_id(int uid);
64 int ttsd_player_all_stop();
70 #endif /* __TTSD_PLAYER_H_ */