diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-16 21:27:08 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-16 21:27:08 +0200 |
commit | 6d505b25848c8db7363e54a6902aebc859f53bc7 (patch) | |
tree | ea8bd4b5d748f61c838214de550997d734c95aec /playlist.h | |
parent | 743cf8e3a236a18080de2fb9467185d54e60afe4 (diff) |
gapless playback 2nd iteration - sample-accurate seeking on flac and ape
Diffstat (limited to 'playlist.h')
-rw-r--r-- | playlist.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |