X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fplayer.h;h=e64abd79f7b834b0f6521829576da8e4ef8bc9f5;hb=fcae09355c1a00a68015b3d727339aebd2e52aa4;hp=a097fd963c23f42476e1fa292c3d0644b565cbaf;hpb=e20bf0f86703779f11d575f44173ff73544e1c2d;p=nageru diff --git a/futatabi/player.h b/futatabi/player.h index a097fd9..e64abd7 100644 --- a/futatabi/player.h +++ b/futatabi/player.h @@ -61,6 +61,11 @@ public: pause_status = status; } + void set_master_speed(float speed) + { + change_master_speed = speed; + } + // Not thread-safe to set concurrently with playing. // Will be called back from the player thread. using done_callback_func = std::function; @@ -90,6 +95,7 @@ private: std::thread player_thread; std::atomic should_quit{ false }; + std::atomic change_master_speed{ 0.0f / 0.0f }; JPEGFrameView *destination; done_callback_func done_callback;