X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mixer.h;h=db6db15155bacb85fd0fe011296cf770422039f5;hb=d8d3977251e2f5aa440bc78ec98707cc19a6fa55;hp=6d0cbce1593b6da92c4f426668d948c982683921;hpb=196392c483a9cbf7fd7b572d9242aa283031453f;p=nageru diff --git a/mixer.h b/mixer.h index 6d0cbce..db6db15 100644 --- a/mixer.h +++ b/mixer.h @@ -169,6 +169,11 @@ public: compressor_enabled = enabled; } + void schedule_cut() + { + should_cut = true; + } + void reset_meters(); private: @@ -252,6 +257,7 @@ private: std::thread mixer_thread; std::thread audio_thread; std::atomic should_quit{false}; + std::atomic should_cut{false}; audio_level_callback_t audio_level_callback = nullptr; std::mutex r128_mutex;