summaryrefslogtreecommitdiffstats
path: root/src/audio_core/audio_core.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2017-05-01 06:36:00 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2017-05-10 06:44:00 +0200
commitb4a93cfddecdb939562e56d7609657d2f14b6702 (patch)
tree75da1f521209b74fa82a982356b878bd1c475562 /src/audio_core/audio_core.h
parentMemory: Add constants for the n3DS additional RAM (diff)
downloadyuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar
yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar.gz
yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar.bz2
yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar.lz
yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar.xz
yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar.zst
yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.zip
Diffstat (limited to '')
-rw-r--r--src/audio_core/audio_core.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/audio_core/audio_core.h b/src/audio_core/audio_core.h
index 0edf6dd15..ab323ce1f 100644
--- a/src/audio_core/audio_core.h
+++ b/src/audio_core/audio_core.h
@@ -4,11 +4,10 @@
#pragma once
+#include <array>
#include <string>
-
-namespace Kernel {
-class VMManager;
-}
+#include "common/common_types.h"
+#include "core/memory.h"
namespace AudioCore {
@@ -17,8 +16,8 @@ constexpr int native_sample_rate = 32728; ///< 32kHz
/// Initialise Audio Core
void Init();
-/// Add DSP address spaces to a Process.
-void AddAddressSpace(Kernel::VMManager& vm_manager);
+/// Returns a reference to the array backing DSP memory
+std::array<u8, Memory::DSP_RAM_SIZE>& GetDspMemory();
/// Select the sink to use based on sink id.
void SelectSink(std::string sink_id);
@@ -29,4 +28,4 @@ void EnableStretching(bool enable);
/// Shutdown Audio Core
void Shutdown();
-} // namespace
+} // namespace AudioCore