2007-11-18 17:12:19 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007 Michael Sevakis
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2007-11-18 17:12:19 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef VOICE_THREAD_H
|
|
|
|
#define VOICE_THREAD_H
|
|
|
|
|
2011-12-19 20:12:52 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
2020-09-20 14:36:25 +00:00
|
|
|
#ifndef VOICE_PLAY_CALLBACK_DEFINED
|
|
|
|
#define VOICE_PLAY_CALLBACK_DEFINED
|
|
|
|
typedef void (*voice_play_callback_t)(const void **start, size_t *size);
|
2012-05-02 21:22:28 +00:00
|
|
|
#endif
|
2012-03-04 19:44:43 +00:00
|
|
|
|
2020-09-20 14:36:25 +00:00
|
|
|
void voice_play_data(const void *start, size_t size,
|
|
|
|
voice_play_callback_t get_more);
|
|
|
|
void voice_play_stop(void);
|
2007-11-18 17:12:19 +00:00
|
|
|
|
2011-04-27 04:00:48 +00:00
|
|
|
void voice_wait(void);
|
2007-11-18 17:12:19 +00:00
|
|
|
void voice_stop(void);
|
2011-06-29 06:37:04 +00:00
|
|
|
|
2012-05-21 19:21:36 +00:00
|
|
|
void voice_thread_init(void);
|
2020-09-20 17:29:02 +00:00
|
|
|
void voice_thread_kill(void);
|
|
|
|
|
2011-06-29 06:37:04 +00:00
|
|
|
#ifdef HAVE_PRIORITY_SCHEDULING
|
2007-11-18 17:12:19 +00:00
|
|
|
void voice_thread_set_priority(int priority);
|
2011-06-29 06:37:04 +00:00
|
|
|
#endif
|
|
|
|
|
2007-11-18 17:12:19 +00:00
|
|
|
#endif /* VOICE_THREAD_H */
|