mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-14 08:08:02 -05:00
Rework ADSP into a wrapper for apps
This commit is contained in:
18
src/audio_core/adsp/adsp.cpp
Normal file
18
src/audio_core/adsp/adsp.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include "audio_core/adsp/adsp.h"
|
||||
#include "core/core.h"
|
||||
|
||||
namespace AudioCore::ADSP {
|
||||
|
||||
ADSP::ADSP(Core::System& system, Sink::Sink& sink) {
|
||||
audio_renderer =
|
||||
std::make_unique<AudioRenderer::AudioRenderer>(system, system.ApplicationMemory(), sink);
|
||||
}
|
||||
|
||||
AudioRenderer::AudioRenderer& ADSP::AudioRenderer() {
|
||||
return *audio_renderer.get();
|
||||
}
|
||||
|
||||
} // namespace AudioCore::ADSP
|
Reference in New Issue
Block a user