2004-01-05 20:42:51 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Code that has been in mpeg.c/h before, now creating an encapsulated play
|
|
|
|
* data module, to be used by other sources than file playback as well.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2004 by Linus Nielsen Feltzing
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2004-01-05 20:42:51 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef _MP3_PLAYBACK_H_
|
|
|
|
#define _MP3_PLAYBACK_H_
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
/* functions formerly in mpeg.c */
|
2005-01-12 00:24:15 +00:00
|
|
|
void mp3_init(int volume, int bass, int treble, int balance, int loudness,
|
|
|
|
int avc, int channel_config, int stereo_width,
|
2004-07-06 12:17:14 +00:00
|
|
|
int mdb_strength, int mdb_harmonics,
|
|
|
|
int mdb_center, int mdb_shape, bool mdb_enable,
|
|
|
|
bool superbass);
|
2004-01-10 15:39:56 +00:00
|
|
|
|
|
|
|
/* exported just for mpeg.c, to keep the recording there */
|
2005-08-29 21:15:27 +00:00
|
|
|
#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
|
2004-01-10 15:39:56 +00:00
|
|
|
void demand_irq_enable(bool on);
|
|
|
|
#endif
|
|
|
|
|
2004-01-30 22:30:40 +00:00
|
|
|
/* new functions, exported to plugin API */
|
2011-11-22 19:59:31 +00:00
|
|
|
#if CONFIG_CODEC == MAS3587F
|
2004-01-05 20:42:51 +00:00
|
|
|
void mp3_play_init(void);
|
2011-11-22 19:59:31 +00:00
|
|
|
#endif
|
2004-08-16 23:37:23 +00:00
|
|
|
void mp3_play_data(const unsigned char* start, int size,
|
2007-06-13 15:35:07 +00:00
|
|
|
void (*get_more)(unsigned char** start, size_t* size) /* callback fn */
|
2004-01-05 20:42:51 +00:00
|
|
|
);
|
|
|
|
void mp3_play_pause(bool play);
|
2005-05-13 00:16:14 +00:00
|
|
|
bool mp3_pause_done(void);
|
2004-01-05 20:42:51 +00:00
|
|
|
void mp3_play_stop(void);
|
2004-01-30 22:30:40 +00:00
|
|
|
bool mp3_is_playing(void);
|
2004-03-21 17:45:45 +00:00
|
|
|
unsigned char* mp3_get_pos(void);
|
2004-07-24 21:26:41 +00:00
|
|
|
void mp3_shutdown(void);
|
2004-01-05 20:42:51 +00:00
|
|
|
|
|
|
|
#endif /* #ifndef _MP3_PLAYBACK_H_ */
|