player.set_done_callback([&done_promise] {
done_promise.set_value();
});
- player.set_progress_callback([¤t_value, &clips, total_length](const std::map<uint64_t, double> &player_progress, double time_remaining) {
+ player.set_progress_callback([¤t_value, total_length](const std::map<uint64_t, double> &player_progress, double time_remaining) {
current_value = 1.0 - time_remaining / total_length;
});
player.play(clips_with_id);
void activate_lights_all_buses(int field_number, std::map<MIDIDevice::LightKey, uint8_t> *active_lights);
std::atomic<bool> should_quit{false};
- int should_quit_fd;
std::atomic<bool> has_peaked[MAX_BUSES] {{ false }};