FifoRecorder: Implement IsRecordingDone()
This commit is contained in:
parent
aac1b386b9
commit
aa8bf71333
|
@ -63,6 +63,11 @@ void FifoRecorder::StopRecording()
|
||||||
m_RequestedRecordingEnd = true;
|
m_RequestedRecordingEnd = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool FifoRecorder::IsRecordingDone() const
|
||||||
|
{
|
||||||
|
return m_WasRecording && m_File != nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
FifoDataFile* FifoRecorder::GetRecordedFile() const
|
FifoDataFile* FifoRecorder::GetRecordedFile() const
|
||||||
{
|
{
|
||||||
return m_File.get();
|
return m_File.get();
|
||||||
|
|
|
@ -20,6 +20,8 @@ public:
|
||||||
void StartRecording(s32 numFrames, CallbackFunc finishedCb);
|
void StartRecording(s32 numFrames, CallbackFunc finishedCb);
|
||||||
void StopRecording();
|
void StopRecording();
|
||||||
|
|
||||||
|
bool IsRecordingDone() const;
|
||||||
|
|
||||||
FifoDataFile* GetRecordedFile() const;
|
FifoDataFile* GetRecordedFile() const;
|
||||||
// Called from video thread
|
// Called from video thread
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue