X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=clip_list.h;h=2d37eab4fda0959e23e004f78cdd4120523f6188;hb=b278660b3e68a23d39c9783ac64675b44675016c;hp=db3a479dd723a4c717493a22a898f6da1660272b;hpb=0c3bfa8f2fb956efce124dea05e006231603c333;p=nageru diff --git a/clip_list.h b/clip_list.h index db3a479..2d37eab 100644 --- a/clip_list.h +++ b/clip_list.h @@ -120,7 +120,7 @@ public: ClipProxy mutable_back() { return mutable_clip(size() - 1); } const Clip *back() const { return clip(size() - 1); } - void set_currently_playing(int index); // -1 = none. + void set_currently_playing(int index, double progress); // -1 = none. int get_currently_playing() const { return currently_playing_index; } void emit_data_changed(size_t row) override; @@ -128,6 +128,7 @@ public: private: std::vector clips; int currently_playing_index = -1; + double play_progress = 0.0; }; #endif // !defined (_CLIP_LIST_H)