include/thread.h
author Markus Bröker <mbroeker@largo.dyndns.tv>
Sat, 13 Dec 2008 15:57:04 +0100
changeset 1 fd135abaac89
parent 0 06dd3b8d90ad
permissions -rw-r--r--
Troubleshooting: * See http://de.gentoo-wiki.com/Mbrola * txt2pho needs a config file -> ~/.txt2phorc or /etc/txt2pho committer: Markus Bröker <mbroeker@largo.homelinux.org>

/**
 *  $Id: thread.h 53 2008-01-10 00:19:41Z mbroeker $
 * $URL: http://localhost/svn/c/VirtualReader/trunk/include/thread.h $
 */

#ifndef __THREAD_H__
#define __THREAD_H__

#include <pthread.h>
#include <sentence.h>
#include <interface.h>
#include <audioplayer.h>

#ifndef TIMEOUT
#define TIMEOUT 186
#endif

typedef struct {
    int satz;
    int items;
    char *fname;
    tts_options ttsopt;
    ttshandles ttsh;
    char **sentences;
    long **timings;
} ThreadData;

/* reads the wavefiles from disk */
void readtext (ThreadData *);

/* stores the data on the harddisk */
void writewav (ThreadData *);

/* (re)starts a thread */
int p_thread_restart (pthread_t, void *, ThreadData *);

#endif