Rearange menu of mpegplayer. Add new menu with "settings" and "quit", and remove...
[kugel-rb.git] / apps / playback.h
blob378d5effec1407aefee0a28eb57ed5d166227f2b
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 _PLAYBACK_H
23 #define _PLAYBACK_H
25 #include <stdbool.h>
26 #include "config.h"
28 /* Functions */
29 const char *get_codec_filename(int cod_spec);
30 void voice_wait(void);
31 bool audio_is_thread_ready(void);
32 int audio_track_count(void);
33 long audio_filebufused(void);
34 void audio_pre_ff_rewind(void);
35 void audio_set_crossfade(int type);
36 void audio_skip(int direction);
37 void audio_hard_stop(void); /* Stops audio from serving playback */
39 enum
41 AUDIO_WANT_PLAYBACK = 0,
42 AUDIO_WANT_VOICE,
44 bool audio_restore_playback(int type); /* Restores the audio buffer to handle the requested playback */
45 void codec_thread_do_callback(void (*fn)(void),
46 unsigned int *codec_thread_id);
48 #ifdef HAVE_ALBUMART
49 int audio_current_aa_hid(void);
50 #endif
52 #if CONFIG_CODEC == SWCODEC /* This #ifdef is better here than gui/wps.c */
53 extern void audio_next_dir(void);
54 extern void audio_prev_dir(void);
55 #else
56 #define audio_next_dir() ({ })
57 #define audio_prev_dir() ({ })
58 #endif
60 #endif