X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=clip_list.h;h=c853263c13e28047048fcaa7c53aa59df6253d41;hb=215cdc3dced101eaecb864eb33ffe5c4865a0bb4;hp=31ddb6cb297965512c5c7a65d26bfc52b485ca9b;hpb=58b5adcca3af1abbf4c69b00853bee037bb7fec7;p=nageru diff --git a/clip_list.h b/clip_list.h index 31ddb6c..c853263 100644 --- a/clip_list.h +++ b/clip_list.h @@ -15,6 +15,7 @@ struct Clip { int64_t pts_in = -1, pts_out = -1; // pts_in is inclusive, pts_out is exclusive. std::string descriptions[NUM_CAMERAS]; unsigned stream_idx = 0; // For the playlist only. + double fade_time_seconds = 0.5; // For the playlist only. }; class DataChangedReceiver { @@ -99,6 +100,7 @@ public: DURATION, CAMERA, DESCRIPTION, + FADE_TIME, NUM_COLUMNS }; @@ -126,6 +128,7 @@ public: ClipProxy mutable_back() { return mutable_clip(size() - 1); } const Clip *back() const { return clip(size() - 1); } + // TODO: Move these out of PlayList. void set_currently_playing(int index, double progress); // -1 = none. int get_currently_playing() const { return currently_playing_index; }