]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/trackattachment.h
Add a function to retrieve track attachments in order
[r2c2.git] / source / libr2c2 / trackattachment.h
index d02a443d823a6e77a123f7a56246c453669985fa..1572f619db1ede100ea9cfa8e22d4298ba9a2edc 100644 (file)
@@ -2,6 +2,7 @@
 #define LIBR2C2_TRACKATTACHMENT_H_
 
 #include "object.h"
+#include "track.h"
 #include "trackiter.h"
 
 namespace R2C2 {
@@ -20,6 +21,7 @@ public:
        Track *get_track() const { return track.track(); }
        unsigned get_entry() const { return track.entry(); }
        float get_offset() const { return offset; }
+       float get_offset_from_endpoint(unsigned) const;
 protected:
        void attach_to(const TrackIter &, float);
        void attach_to_closest(float);