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
|
|
|
|
|
|
|
|
void mp3_play_data(const unsigned char* start, int size,
|
|
|
|
void (*get_more)(unsigned char** start, size_t* size));
|
|
|
|
void mp3_play_stop(void);
|
|
|
|
void mp3_play_pause(bool play);
|
|
|
|
bool mp3_is_playing(void);
|
|
|
|
|
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
|
|
|
|
2007-11-18 17:12:19 +00:00
|
|
|
void voice_thread_init(void);
|
|
|
|
void voice_thread_resume(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
|
|
|
|
|
|
|
|
size_t voicebuf_init(unsigned char *bufend);
|
2007-11-18 17:12:19 +00:00
|
|
|
|
|
|
|
#endif /* VOICE_THREAD_H */
|