summaryrefslogtreecommitdiffstats
path: root/src/core/core.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-28 05:25:32 +0200
committerGitHub <noreply@github.com>2018-07-28 05:25:32 +0200
commite1d66ea7942800d51aff57c44d0e9ab9ffd949dc (patch)
treeaaff4a680cafbd1111baa602af8d0d2d7297f585 /src/core/core.h
parentMerge pull request #696 from DarkLordZach/romfs (diff)
parentaudout: Implement IAudioOut interface with AudioCore. (diff)
downloadyuzu-e1d66ea7942800d51aff57c44d0e9ab9ffd949dc.tar
yuzu-e1d66ea7942800d51aff57c44d0e9ab9ffd949dc.tar.gz
yuzu-e1d66ea7942800d51aff57c44d0e9ab9ffd949dc.tar.bz2
yuzu-e1d66ea7942800d51aff57c44d0e9ab9ffd949dc.tar.lz
yuzu-e1d66ea7942800d51aff57c44d0e9ab9ffd949dc.tar.xz
yuzu-e1d66ea7942800d51aff57c44d0e9ab9ffd949dc.tar.zst
yuzu-e1d66ea7942800d51aff57c44d0e9ab9ffd949dc.zip
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h
index c123fe401..6f4df775f 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -8,6 +8,7 @@
#include <memory>
#include <string>
#include <thread>
+#include "audio_core/audio_out.h"
#include "common/common_types.h"
#include "core/arm/exclusive_monitor.h"
#include "core/core_cpu.h"
@@ -131,6 +132,11 @@ public:
return *gpu_core;
}
+ /// Gets the AudioCore interface
+ AudioCore::AudioOut& AudioCore() {
+ return *audio_core;
+ }
+
/// Gets the scheduler for the CPU core that is currently running
Kernel::Scheduler& CurrentScheduler() {
return *CurrentCpuCore().Scheduler();
@@ -195,6 +201,7 @@ private:
/// AppLoader used to load the current executing application
std::unique_ptr<Loader::AppLoader> app_loader;
std::unique_ptr<Tegra::GPU> gpu_core;
+ std::unique_ptr<AudioCore::AudioOut> audio_core;
std::shared_ptr<Tegra::DebugContext> debug_context;
Kernel::SharedPtr<Kernel::Process> current_process;
std::shared_ptr<ExclusiveMonitor> cpu_exclusive_monitor;