FifoRecorder: Implement IsRecordingDone()

This commit is contained in:
spycrab 2017-11-19 16:51:04 +01:00
parent aac1b386b9
commit aa8bf71333
2 changed files with 7 additions and 0 deletions

View file

@ -63,6 +63,11 @@ void FifoRecorder::StopRecording()
m_RequestedRecordingEnd = true;
}
bool FifoRecorder::IsRecordingDone() const
{
return m_WasRecording && m_File != nullptr;
}
FifoDataFile* FifoRecorder::GetRecordedFile() const
{
return m_File.get();

View file

@ -20,6 +20,8 @@ public:
void StartRecording(s32 numFrames, CallbackFunc finishedCb);
void StopRecording();
bool IsRecordingDone() const;
FifoDataFile* GetRecordedFile() const;
// Called from video thread