mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-03 08:07:45 +00:00
Qt: Implement FIFO Player
This commit is contained in:
parent
aa8bf71333
commit
474b1c2d5c
10 changed files with 435 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue