2004-01-29 01:02:12 +00: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 15:15:11 +00:00
|
|
|
/* format_mp3.h
|
2014-11-30 20:32:30 +00:00
|
|
|
**
|
|
|
|
** mp3 format plugin
|
|
|
|
**
|
|
|
|
*/
|
2002-07-23 15:15:11 +00:00
|
|
|
#ifndef __FORMAT_MP3_H__
|
|
|
|
#define __FORMAT_MP3_H__
|
|
|
|
|
2014-12-09 16:08:27 +00: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 07:55:56 +00:00
|
|
|
typedef struct {
|
2003-02-24 13:37:15 +00:00
|
|
|
/* These are for inline metadata */
|
|
|
|
int inline_metadata_interval;
|
|
|
|
int offset;
|
2005-04-18 14:32:26 +00:00
|
|
|
int interval;
|
2009-01-15 03:38:49 +00:00
|
|
|
char *inline_url;
|
2004-08-20 15:13:59 +00:00
|
|
|
int update_metadata;
|
|
|
|
|
|
|
|
refbuf_t *metadata;
|
2005-08-08 19:21:54 +00:00
|
|
|
refbuf_t *read_data;
|
2009-01-15 03:38:49 +00:00
|
|
|
int read_count;
|
2004-08-20 15:13:59 +00:00
|
|
|
mutex_t url_lock;
|
|
|
|
|
|
|
|
unsigned build_metadata_len;
|
|
|
|
unsigned build_metadata_offset;
|
|
|
|
char build_metadata[4081];
|
2002-12-30 07:55:56 +00:00
|
|
|
} mp3_state;
|
|
|
|
|
2004-08-20 15:13:59 +00:00
|
|
|
int format_mp3_get_plugin(struct source_tag *src);
|
2002-07-23 15:15:11 +00:00
|
|
|
|
|
|
|
#endif /* __FORMAT_MP3_H__ */
|