Clear data when AUDIO_POLICY_BLOCKED is occurred
[platform/core/uifw/tts.git] / server / ttsd_data.h
index 23478a9..3acbf22 100644 (file)
@@ -29,6 +29,12 @@ typedef enum {
        APP_STATE_PAUSED
 } app_tts_state_e;
 
+typedef enum {
+       TTSD_SYNTHESIS_CONTROL_DOING    = 0,
+       TTSD_SYNTHESIS_CONTROL_DONE     = 1,
+       TTSD_SYNTHESIS_CONTROL_EXPIRED  = 2
+} ttsd_synthesis_control_e;
+
 typedef struct {
        int     utt_id; 
        char*   text;
@@ -48,6 +54,10 @@ typedef struct {
        int                     channels;
 } sound_data_s;
 
+int ttsd_set_synth_control(ttsd_synthesis_control_e control);
+
+ttsd_synthesis_control_e ttsd_get_synth_control();
+
 typedef void (* ttsd_used_voice_cb)(const char* lang, int type);
 
 int ttsd_data_new_client(int pid, int uid);