don't save mountpoint using native separators in the configuration. Makes things...
[Rockbox.git] / apps / playback.h
blob5e1eb9865b3708e02c685227eed5ea3eb69ec870
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2005 Miika Pekkarinen
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 ****************************************************************************/
20 #ifndef _PLAYBACK_H
21 #define _PLAYBACK_H
23 #include <stdbool.h>
24 #include "config.h"
26 /* Functions */
27 const char *get_codec_filename(int cod_spec);
28 void voice_wait(void);
29 void audio_wait_for_init(void);
30 int audio_track_count(void);
31 long audio_filebufused(void);
32 void audio_pre_ff_rewind(void);
33 void audio_set_crossfade(int type);
35 void audio_hard_stop(void); /* Stops audio from serving playback */
37 enum
39 AUDIO_WANT_PLAYBACK = 0,
40 AUDIO_WANT_VOICE,
42 bool audio_restore_playback(int type); /* Restores the audio buffer to handle the requested playback */
44 #ifdef HAVE_ALBUMART
45 int audio_current_aa_hid(void);
46 #endif
48 #if CONFIG_CODEC == SWCODEC /* This #ifdef is better here than gui/gwps.c */
49 extern void audio_next_dir(void);
50 extern void audio_prev_dir(void);
51 #else
52 #define audio_next_dir() ({ })
53 #define audio_prev_dir() ({ })
54 #endif
56 #endif