Mesen2/Utilities/Video/IVideoRecorder.h
Sour 0488eb262b AVI: Allow changing resolution/sample rate until first frame is recorded
+ Fixed crash if resolution increases while recording to GIF
2023-02-17 19:56:55 -05:00

19 lines
No EOL
556 B
C++

#pragma once
#include "pch.h"
class IVideoRecorder
{
public:
virtual ~IVideoRecorder() = default;
virtual bool Init(string filename) = 0;
virtual bool StartRecording(uint32_t width, uint32_t height, uint32_t bpp, uint32_t audioSampleRate, double fps) = 0;
virtual void StopRecording() = 0;
virtual bool AddFrame(void* frameBuffer, uint32_t width, uint32_t height, double fps) = 0;
virtual bool AddSound(int16_t* soundBuffer, uint32_t sampleCount, uint32_t sampleRate) = 0;
virtual bool IsRecording() = 0;
virtual string GetOutputFile() = 0;
};