From c537d5958e8b421ac4f9bef6c8b9e7425a6cf167 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 27 Apr 2011 03:08:23 +0000 Subject: Commit FS#12069 - Playback rework - first stages. Gives as thorough as possible a treatment of codec management, track change and metadata logic as possible while maintaining fairly narrow focus and not rewriting everything all at once. Please see the rockbox-dev mail archive on 2011-04-25 (Playback engine rework) for a more thorough manifest of what was addressed. Plugins and codecs become incompatible. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29785 a1c6a512-1295-4272-9138-f99709370657 --- apps/metadata.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'apps/metadata.h') diff --git a/apps/metadata.h b/apps/metadata.h index c22c1b3ecf..b268a3d474 100644 --- a/apps/metadata.h +++ b/apps/metadata.h @@ -266,9 +266,7 @@ struct mp3entry { /* resume related */ unsigned long offset; /* bytes played */ -#if CONFIG_CODEC != SWCODEC int index; /* playlist index */ -#endif #ifdef HAVE_TAGCACHE unsigned char autoresumable; /* caches result of autoresumable() */ @@ -309,9 +307,14 @@ bool get_metadata(struct mp3entry* id3, int fd, const char* trackname); bool mp3info(struct mp3entry *entry, const char *filename); void adjust_mp3entry(struct mp3entry *entry, void *dest, const void *orig); void copy_mp3entry(struct mp3entry *dest, const struct mp3entry *orig); +void wipe_mp3entry(struct mp3entry *id3); #if CONFIG_CODEC == SWCODEC +void fill_metadata_from_path(struct mp3entry *id3, const char *trackname); +int get_audio_base_codec_type(int type); void strip_tags(int handle_id); +enum data_type get_audio_base_data_type(int afmt); +bool format_buffers_with_offset(int afmt); #endif #ifdef HAVE_TAGCACHE -- cgit v1.2.3