current_highlighted_camera = stream_idx;
refresh_lights();
}
+ void set_speed_light(float speed) { // Goes from 0.0 to 2.0.
+ current_speed = speed;
+ refresh_lights();
+ }
// MIDIReceiver.
void controller_received(int controller, int value) override;
void update_lights_lock_held();
std::atomic<bool> should_quit{false};
- int should_quit_fd;
mutable std::mutex mu;
ControllerReceiver *receiver; // Under <mu>.
std::atomic<LightState> play_enabled_light{Off};
std::atomic<LightState> locked_light{On};
std::atomic<int> current_highlighted_camera{-1};
+ std::atomic<float> current_speed{1.0f};
MIDIDevice midi_device;
};