展示优化

This commit is contained in:
2026-08-03 11:22:23 +08:00
parent b8c1360175
commit ed601608b2
3 changed files with 132 additions and 43 deletions
+2 -17
View File
@@ -25,28 +25,13 @@ public:
QString get_screenshot_save_dir_path();
QString get_screenshot_save_file_name();
QString get_audio_file_location();
void stop_mock_thread() {
++mock_generation;
if (mock_timer) {
mock_timer->stop();
mock_timer->disconnect(this);
mock_timer->deleteLater();
mock_timer = nullptr;
}
if (mock_thread) {
mock_thread->quit();
mock_thread->wait();
mock_thread = nullptr;
}
}
void stop_mock_thread();
Back_End(const Back_End&) = delete;
Back_End& operator=(const Back_End&) = delete;
void call_back_data_func(int channel, void *pData, int i_length);
protected:
Back_End();
~Back_End() override {
stop_mock_thread();
}
~Back_End() override;
QTimer* mock_timer{};
std::uint64_t mock_generation{};
QThread* mock_thread{};