mirror of
https://github.com/libretro/MesenCE.git
synced 2026-11-10 11:11:32 -10:00
* Code: Add auto-formatting rules for C++ projects (clang-format) and enforce code style via "clang-format" and "dotnet format" * fix ui format warnings
65 lines
1.3 KiB
C++
65 lines
1.3 KiB
C++
#include "Common.h"
|
|
#include "Core/Shared/Emulator.h"
|
|
#include "Core/Shared/Video/VideoRenderer.h"
|
|
#include "Core/Shared/Audio/SoundMixer.h"
|
|
#include "Core/Shared/Movies/MovieManager.h"
|
|
|
|
extern unique_ptr<Emulator> _emu;
|
|
|
|
extern "C"
|
|
{
|
|
DllExport void __stdcall AviRecord(char* filename, RecordAviOptions options)
|
|
{
|
|
_emu->GetVideoRenderer()->StartRecording(filename, options);
|
|
}
|
|
|
|
DllExport void __stdcall AviStop()
|
|
{
|
|
_emu->GetVideoRenderer()->StopRecording();
|
|
}
|
|
|
|
DllExport bool __stdcall AviIsRecording()
|
|
{
|
|
return _emu->GetVideoRenderer()->IsRecording();
|
|
}
|
|
|
|
DllExport void __stdcall WaveRecord(char* filename)
|
|
{
|
|
_emu->GetSoundMixer()->StartRecording(filename);
|
|
}
|
|
|
|
DllExport void __stdcall WaveStop()
|
|
{
|
|
_emu->GetSoundMixer()->StopRecording();
|
|
}
|
|
|
|
DllExport bool __stdcall WaveIsRecording()
|
|
{
|
|
return _emu->GetSoundMixer()->IsRecording();
|
|
}
|
|
|
|
DllExport void __stdcall MoviePlay(char* filename)
|
|
{
|
|
_emu->GetMovieManager()->Play(string(filename));
|
|
}
|
|
|
|
DllExport void __stdcall MovieStop()
|
|
{
|
|
_emu->GetMovieManager()->Stop();
|
|
}
|
|
|
|
DllExport bool __stdcall MoviePlaying()
|
|
{
|
|
return _emu->GetMovieManager()->Playing();
|
|
}
|
|
|
|
DllExport bool __stdcall MovieRecording()
|
|
{
|
|
return _emu->GetMovieManager()->Recording();
|
|
}
|
|
|
|
DllExport void __stdcall MovieRecord(RecordMovieOptions options)
|
|
{
|
|
_emu->GetMovieManager()->Record(options);
|
|
}
|
|
} |