2 * Copyright (c) 2011-2016 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
32 } ttsd_player_state_e;
35 * TTSD Player Interfaces
38 int ttsd_player_init();
40 int ttsd_player_release(void);
42 int ttsd_player_play(unsigned int uid);
44 int ttsd_player_stop(unsigned int uid);
46 int ttsd_player_pause(unsigned int uid);
48 int ttsd_player_all_stop();
50 int ttsd_player_set_background_volume_ratio(double ratio);
52 int ttsd_player_wait_to_play(unsigned int uid);
58 #endif /* __TTSD_PLAYER_H_ */