mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 12:39:13 +12:00
Adding audio interface part 1
This commit is contained in:
parent
be071ffb78
commit
486e2ea5cb
7 changed files with 91 additions and 51 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include "PICA/gpu.hpp"
|
||||
#include "audio/dsp_core.hpp"
|
||||
#include "audio/libretro_audio_device.hpp"
|
||||
#include "audio/miniaudio_device.hpp"
|
||||
#include "cheats.hpp"
|
||||
#include "config.hpp"
|
||||
|
@ -48,7 +49,11 @@ class Emulator {
|
|||
Scheduler scheduler;
|
||||
|
||||
Crypto::AESEngine aesEngine;
|
||||
#ifndef __LIBRETRO__
|
||||
MiniAudioDevice audioDevice;
|
||||
#else
|
||||
LibretroAudioDevice audioDevice;
|
||||
#endif
|
||||
Cheats cheats;
|
||||
|
||||
public:
|
||||
|
@ -126,6 +131,7 @@ class Emulator {
|
|||
LuaManager& getLua() { return lua; }
|
||||
Scheduler& getScheduler() { return scheduler; }
|
||||
Memory& getMemory() { return memory; }
|
||||
AudioDeviceInterface& getAudioDevice() { return audioDevice; }
|
||||
|
||||
RendererType getRendererType() const { return config.rendererType; }
|
||||
Renderer* getRenderer() { return gpu.getRenderer(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue