DSP: Create backing memory for entire DSP RAM

Also move address space mapping out of video_core.
This commit is contained in:
Yuri Kunde Schlesner
2017-04-30 21:36:00 -07:00
parent d3db770cad
commit b4a93cfdde
5 changed files with 42 additions and 32 deletions

View File

@ -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