From 6d505b25848c8db7363e54a6902aebc859f53bc7 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Wed, 16 Sep 2009 21:27:08 +0200 Subject: gapless playback 2nd iteration - sample-accurate seeking on flac and ape --- playlist.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'playlist.h') diff --git a/playlist.h b/playlist.h index 40fdc7db..21754102 100644 --- a/playlist.h +++ b/playlist.h @@ -35,6 +35,8 @@ typedef struct playItem_s { char *fname; // full pathname struct DB_decoder_s *decoder; // codec to use with this file int tracknum; // used for stuff like sid, nsf, cue (will be ignored by most codecs) + int startsample; + int endsample; float timestart; // start time of cue track, or -1 float timeend; // end time of cue track, or -1 float duration; // in seconds @@ -103,10 +105,10 @@ int pl_get_idx_of (playItem_t *it); playItem_t * -pl_insert_cue_from_buffer (playItem_t *after, const char *fname, const uint8_t *buffer, int buffersize, struct DB_decoder_s *decoder, const char *ftype, float duration); +pl_insert_cue_from_buffer (playItem_t *after, const char *fname, const uint8_t *buffer, int buffersize, struct DB_decoder_s *decoder, const char *ftype, int numsamples, int samplerate); playItem_t * -pl_insert_cue (playItem_t *after, const char *cuename, struct DB_decoder_s *decoder, const char *ftype, float duration); +pl_insert_cue (playItem_t *after, const char *cuename, struct DB_decoder_s *decoder, const char *ftype, int numsamples, int samplerate); //int //pl_set_current (playItem_t *it); -- cgit v1.2.3