Some improvements for recorder in playback
This commit is contained in:
@@ -75,7 +75,7 @@ namespace OpenVulkano::AR
|
|||||||
ArRecorder::ArRecorder(ArSession* session)
|
ArRecorder::ArRecorder(ArSession* session)
|
||||||
: m_session(session), m_asyncProcessor(this)
|
: m_session(session), m_asyncProcessor(this)
|
||||||
{
|
{
|
||||||
if (!session) return;
|
if (!session) { m_settings.asyncRecording = false; return; }
|
||||||
m_settings.path = GeneratePath(AppFolders::GetAppDataHomeDir(), "ar_recording");
|
m_settings.path = GeneratePath(AppFolders::GetAppDataHomeDir(), "ar_recording");
|
||||||
session->OnNewFrameHighResolution += EventHandler(this, &ArRecorder::SaveHighResolution);
|
session->OnNewFrameHighResolution += EventHandler(this, &ArRecorder::SaveHighResolution);
|
||||||
}
|
}
|
||||||
@@ -325,6 +325,7 @@ namespace OpenVulkano::AR
|
|||||||
|
|
||||||
void ArRecorder::WriteMetadataFile()
|
void ArRecorder::WriteMetadataFile()
|
||||||
{
|
{
|
||||||
|
if (!m_session) return;
|
||||||
m_timer.Tick();
|
m_timer.Tick();
|
||||||
m_session->GetSessionMetadata().recFrameCount = m_frameCount;
|
m_session->GetSessionMetadata().recFrameCount = m_frameCount;
|
||||||
m_session->GetSessionMetadata().recSkippedFrames = m_skippedFrames;
|
m_session->GetSessionMetadata().recSkippedFrames = m_skippedFrames;
|
||||||
|
|||||||
Reference in New Issue
Block a user