Simulate the effects of sector caching a bit. Bypass I/O yield if a byte counter...
[Rockbox.git] / apps / voice_thread.h
blob72c2054317a72f2b621c7562b1b09917474c3e8a
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2007 Michael Sevakis
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef VOICE_THREAD_H
20 #define VOICE_THREAD_H
22 void mp3_play_data(const unsigned char* start, int size,
23 void (*get_more)(unsigned char** start, size_t* size));
24 void mp3_play_stop(void);
25 void mp3_play_pause(bool play);
26 bool mp3_is_playing(void);
28 void voice_stop(void);
29 void voice_thread_init(void);
30 void voice_thread_resume(void);
31 void voice_thread_set_priority(int priority);
33 #endif /* VOICE_THREAD_H */