Fix red: broken tools/addtargetdir.pl
[kugel-rb.git] / firmware / export / mp3_playback.h
blobded461439ddadaf25bc9ddc0329bf59c13d5ab1e
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Code that has been in mpeg.c/h before, now creating an encapsulated play
11 * data module, to be used by other sources than file playback as well.
13 * Copyright (C) 2004 by Linus Nielsen Feltzing
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
23 ****************************************************************************/
24 #ifndef _MP3_PLAYBACK_H_
25 #define _MP3_PLAYBACK_H_
27 #include <stdbool.h>
29 /* functions formerly in mpeg.c */
30 void mp3_init(int volume, int bass, int treble, int balance, int loudness,
31 int avc, int channel_config, int stereo_width,
32 int mdb_strength, int mdb_harmonics,
33 int mdb_center, int mdb_shape, bool mdb_enable,
34 bool superbass);
36 /* exported just for mpeg.c, to keep the recording there */
37 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
38 void demand_irq_enable(bool on);
39 #endif
41 /* new functions, exported to plugin API */
42 void mp3_play_init(void);
43 void mp3_play_data(const unsigned char* start, int size,
44 void (*get_more)(unsigned char** start, size_t* size) /* callback fn */
46 void mp3_play_pause(bool play);
47 bool mp3_pause_done(void);
48 void mp3_play_stop(void);
49 long mp3_get_playtime(void);
50 void mp3_reset_playtime(void);
51 bool mp3_is_playing(void);
52 unsigned char* mp3_get_pos(void);
53 void mp3_shutdown(void);
55 #endif /* #ifndef _MP3_PLAYBACK_H_ */