2004-01-28 20:02:12 -05:00
|
|
|
/* Icecast
|
|
|
|
*
|
|
|
|
* This program is distributed under the GNU General Public License, version 2.
|
|
|
|
* A copy of this license is included with this source.
|
|
|
|
*
|
|
|
|
* Copyright 2000-2004, Jack Moffitt <jack@xiph.org,
|
|
|
|
* Michael Smith <msmith@xiph.org>,
|
|
|
|
* oddsock <oddsock@xiph.org>,
|
|
|
|
* Karl Heyes <karl@xiph.org>
|
|
|
|
* and others (see AUTHORS for details).
|
|
|
|
*/
|
|
|
|
|
2002-07-23 11:15:11 -04:00
|
|
|
/* format_mp3.h
|
2014-11-30 15:32:30 -05:00
|
|
|
**
|
|
|
|
** mp3 format plugin
|
|
|
|
**
|
|
|
|
*/
|
2002-07-23 11:15:11 -04:00
|
|
|
#ifndef __FORMAT_MP3_H__
|
|
|
|
#define __FORMAT_MP3_H__
|
|
|
|
|
2014-12-09 11:08:27 -05:00
|
|
|
#define MP3_METADATA_TITLE "X_ICY_TITLE"
|
|
|
|
#define MP3_METADATA_ARTIST "X_ICY_ARTIST"
|
|
|
|
#define MP3_METADATA_URL "X_ICY_URL"
|
|
|
|
|
2002-12-30 02:55:56 -05:00
|
|
|
typedef struct {
|
2003-02-24 08:37:15 -05:00
|
|
|
/* These are for inline metadata */
|
|
|
|
int inline_metadata_interval;
|
|
|
|
int offset;
|
2005-04-18 10:32:26 -04:00
|
|
|
int interval;
|
2009-01-14 22:38:49 -05:00
|
|
|
char *inline_url;
|
2004-08-20 11:13:59 -04:00
|
|
|
int update_metadata;
|
|
|
|
|
|
|
|
refbuf_t *metadata;
|
2005-08-08 15:21:54 -04:00
|
|
|
refbuf_t *read_data;
|
2009-01-14 22:38:49 -05:00
|
|
|
int read_count;
|
2004-08-20 11:13:59 -04:00
|
|
|
mutex_t url_lock;
|
|
|
|
|
|
|
|
unsigned build_metadata_len;
|
|
|
|
unsigned build_metadata_offset;
|
|
|
|
char build_metadata[4081];
|
2002-12-30 02:55:56 -05:00
|
|
|
} mp3_state;
|
|
|
|
|
2004-08-20 11:13:59 -04:00
|
|
|
int format_mp3_get_plugin(struct source_tag *src);
|
2002-07-23 11:15:11 -04:00
|
|
|
|
|
|
|
#endif /* __FORMAT_MP3_H__ */
|