Get the NSF internal playlists working again. Fix a few wrongdoings in the metadata...
[kugel-rb.git] / apps / codec_thread.h
blobacd7e556e2c5a4a0d4497fdc90db43a4f62f4e9c
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2005 Miika Pekkarinen
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef _CODEC_THREAD_H
23 #define _CODEC_THREAD_H
25 #include <stdbool.h>
27 /* codec identity */
28 const char *get_codec_filename(int cod_spec);
30 /* codec thread */
32 /* Audio MUST be stopped before requesting callback! */
33 void codec_thread_do_callback(void (*fn)(void),
34 unsigned int *codec_thread_id);
36 void codec_init_codec_api(void);
37 void make_codec_thread(void);
38 void codec_thread_resume(void);
39 bool is_codec_thread(void);
40 #ifdef HAVE_PRIORITY_SCHEDULING
41 int codec_thread_get_priority(void);
42 int codec_thread_set_priority(int priority);
43 #endif
45 /* codec commands - on audio thread only! */
46 bool codec_load(int hid, int cod_spec);
47 void codec_go(void);
48 bool codec_pause(void);
49 void codec_seek(long time);
50 void codec_stop(void);
51 void codec_unload(void);
52 int codec_loaded(void);
54 /* */
56 #endif /* _CODEC_THREAD_H */