#include #include #include #include "Audio.hpp" EmuThread::EmuThread(std::unique_ptr&& instance, std::unique_ptr&& wsiPlatform, std::unique_ptr&& windowInfo, QObject* parent_object) noexcept : QThread(parent_object), instance(std::move(instance)), wsiPlatform(std::move(wsiPlatform)), windowInfo(std::move(windowInfo)) {} [[noreturn]] void EmuThread::run() noexcept { LoadWSIPlatform(instance.get(), std::move(wsiPlatform), std::move(windowInfo)); LoadParallelRDP(core->cpu->mem.GetRDRAM()); n64::InitAudio(); while (true) { if (!core->pause) { core->Run(0.5, 0.5); if(core->render) { UpdateScreenParallelRdp(core->cpu->mem.mmio.vi); } } else { if(core->render) { UpdateScreenParallelRdpNoGame(); } } } }