diff options
author | Jochen Keil <jochen.keil@gmail.com> | 2009-03-08 20:16:53 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-09 07:58:44 +0100 |
commit | 706112bb885b653d4084fe8bdbbb5bb2ca9c9905 (patch) | |
tree | 16da90eaa192f2e60a785b71d96e90a090e5ea01 /src/decoder/_flac_common.h | |
parent | ab3d89f484d7997e3f6dc0d4bb42c1da9377ba40 (diff) | |
download | mpd-706112bb885b653d4084fe8bdbbb5bb2ca9c9905.tar.gz mpd-706112bb885b653d4084fe8bdbbb5bb2ca9c9905.tar.xz mpd-706112bb885b653d4084fe8bdbbb5bb2ca9c9905.zip |
Initial support for embedded cue sheets found in flac files
So far only seekpoints are supported, so no proper tagging yet
except for track number and track length.
Tagging should be done by parsing the cue sheet which
is often embedded as vorbis comment in flac files.
Furthermore the pathname should be configurable like "%A - %t - %T",
where %A means Artist, %t track number and %T Title or so.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/_flac_common.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/decoder/_flac_common.h b/src/decoder/_flac_common.h index e876c3571..d133ee039 100644 --- a/src/decoder/_flac_common.h +++ b/src/decoder/_flac_common.h @@ -175,4 +175,15 @@ FLAC__StreamDecoderWriteStatus flac_common_write(struct flac_data *data, const FLAC__Frame * frame, const FLAC__int32 *const buf[]); +#if defined(FLAC_API_VERSION_CURRENT) && FLAC_API_VERSION_CURRENT > 7 + +char* +flac_cue_track( const char* pathname, + const unsigned int tnum); + +unsigned int +flac_vtrack_tnum( const char*); + +#endif /* FLAC_API_VERSION_CURRENT >= 7 */ + #endif /* _FLAC_COMMON_H */ |