include/thread.h
changeset 0 06dd3b8d90ad
equal deleted inserted replaced
-1:000000000000 0:06dd3b8d90ad
       
     1 /**
       
     2  *  $Id: thread.h 53 2008-01-10 00:19:41Z mbroeker $
       
     3  * $URL: http://localhost/svn/c/VirtualReader/trunk/include/thread.h $
       
     4  */
       
     5 
       
     6 #ifndef __THREAD_H__
       
     7 #define __THREAD_H__
       
     8 
       
     9 #include <pthread.h>
       
    10 #include <sentence.h>
       
    11 #include <interface.h>
       
    12 #include <audioplayer.h>
       
    13 
       
    14 #ifndef TIMEOUT
       
    15 #define TIMEOUT 186
       
    16 #endif
       
    17 
       
    18 typedef struct {
       
    19     int satz;
       
    20     int items;
       
    21     char *fname;
       
    22     tts_options ttsopt;
       
    23     ttshandles ttsh;
       
    24     char **sentences;
       
    25     long **timings;
       
    26 } ThreadData;
       
    27 
       
    28 /* reads the wavefiles from disk */
       
    29 void readtext (ThreadData *);
       
    30 
       
    31 /* stores the data on the harddisk */
       
    32 void writewav (ThreadData *);
       
    33 
       
    34 /* (re)starts a thread */
       
    35 int p_thread_restart (pthread_t, void *, ThreadData *);
       
    36 
       
    37 #endif