mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
Qt: Implement FIFO Player
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@ -56,7 +57,7 @@ extern bool IsPlayingBackFifologWithBrokenEFBCopies;
|
||||
class FifoPlayer
|
||||
{
|
||||
public:
|
||||
typedef void (*CallbackFunc)(void);
|
||||
using CallbackFunc = std::function<void()>;
|
||||
|
||||
~FifoPlayer();
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <vector>
|
||||
@ -13,7 +14,7 @@
|
||||
class FifoRecorder
|
||||
{
|
||||
public:
|
||||
typedef void (*CallbackFunc)(void);
|
||||
using CallbackFunc = std::function<void()>;
|
||||
|
||||
FifoRecorder();
|
||||
|
||||
@ -56,7 +57,7 @@ private:
|
||||
bool m_WasRecording = false;
|
||||
bool m_RequestedRecordingEnd = false;
|
||||
s32 m_RecordFramesRemaining = 0;
|
||||
CallbackFunc m_FinishedCb = nullptr;
|
||||
CallbackFunc m_FinishedCb;
|
||||
std::unique_ptr<FifoDataFile> m_File;
|
||||
|
||||
// Accessed only from video thread
|
||||
|
Reference in New Issue
Block a user