]> git.sesse.net Git - nageru/blobdiff - futatabi/player.h
Make the MIDI play button blinking when something is ready to play, and solid when...
[nageru] / futatabi / player.h
index a097fd963c23f42476e1fa292c3d0644b565cbaf..e64abd79f7b834b0f6521829576da8e4ef8bc9f5 100644 (file)
@@ -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<void()>;
@@ -90,6 +95,7 @@ private:
 
        std::thread player_thread;
        std::atomic<bool> should_quit{ false };
+       std::atomic<float> change_master_speed{ 0.0f / 0.0f };
 
        JPEGFrameView *destination;
        done_callback_func done_callback;