Add event for recording state in ar recorder
This commit is contained in:
@@ -182,6 +182,7 @@ namespace OpenVulkano::AR
|
||||
platformInfoStream.close();
|
||||
}
|
||||
m_recording = true;
|
||||
OnRecordingStateChanged(this, m_recording);
|
||||
}
|
||||
|
||||
void ArRecorder::Stop()
|
||||
@@ -192,6 +193,7 @@ namespace OpenVulkano::AR
|
||||
{
|
||||
writer->Split();
|
||||
}
|
||||
OnRecordingStateChanged(this, m_recording);
|
||||
}
|
||||
|
||||
void ArRecorder::SetRecordingPath(const std::filesystem::path& path)
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "Math/ByteSize.hpp"
|
||||
#include "Base/Event.hpp"
|
||||
#include <atomic>
|
||||
#include <condition_variable>
|
||||
#include <filesystem>
|
||||
@@ -190,5 +191,7 @@ namespace OpenVulkano::AR
|
||||
const RecordingSettings& GetRecordingSettings() const { return m_settings; }
|
||||
|
||||
void SetRecordHighResImages(bool recHighRes = true) { m_settings.saveHighResFrames = recHighRes; }
|
||||
|
||||
Event<ArRecorder*, bool> OnRecordingStateChanged;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user