Change HMAC-SHA1 implementation to the one taken from gnulib, which
[kugel-rb.git] / apps / playback.h
blob9951cc2a0d42a06d88a69315e6d337bea02736b3
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>
25 #include "id3.h"
26 #include "mp3data.h"
27 #include "events.h"
29 /* Not yet implemented. */
30 #define CODEC_SET_AUDIOBUF_WATERMARK 4
32 #if MEM > 1
33 #define MAX_TRACK 128
34 #else
35 #define MAX_TRACK 32
36 #endif
38 #define MAX_TRACK_MASK (MAX_TRACK-1)
40 /* Functions */
41 const char *get_codec_filename(int cod_spec);
42 void voice_wait(void);
43 void audio_wait_for_init(void);
44 int audio_track_count(void);
45 long audio_filebufused(void);
46 void audio_pre_ff_rewind(void);
47 void audio_set_crossfade(int type);
49 void audio_hard_stop(void); /* Stops audio from serving playback */
51 enum
53 AUDIO_WANT_PLAYBACK = 0,
54 AUDIO_WANT_VOICE,
56 bool audio_restore_playback(int type); /* Restores the audio buffer to handle the requested playback */
58 #ifdef HAVE_ALBUMART
59 int audio_current_aa_hid(void);
60 #endif
62 #if CONFIG_CODEC == SWCODEC /* This #ifdef is better here than gui/gwps.c */
63 extern void audio_next_dir(void);
64 extern void audio_prev_dir(void);
65 #else
66 #define audio_next_dir()
67 #define audio_prev_dir()
68 #endif
70 #endif