From 6548d4914d1d567ea58a29cdfd35a4958cb2d933 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Thu, 9 Jul 2020 14:48:14 +0100 Subject: [PATCH] Implement IAudioDevice for accessing audio output properties This is used by Super Mario Odyssey in its init routine. --- app/CMakeLists.txt | 1 + .../skyline/services/audio/IAudioDevice.cpp | 51 +++++++++++++++++++ .../cpp/skyline/services/audio/IAudioDevice.h | 45 ++++++++++++++++ .../services/audio/IAudioRendererManager.cpp | 8 ++- .../services/audio/IAudioRendererManager.h | 5 ++ .../main/cpp/skyline/services/base_service.h | 1 + 6 files changed, 110 insertions(+), 1 deletion(-) create mode 100644 app/src/main/cpp/skyline/services/audio/IAudioDevice.cpp create mode 100644 app/src/main/cpp/skyline/services/audio/IAudioDevice.h diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 8a34ff47..27f99cd4 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -60,6 +60,7 @@ add_library(skyline SHARED ${source_DIR}/skyline/services/fatalsrv/IService.cpp ${source_DIR}/skyline/services/audio/IAudioOutManager.cpp ${source_DIR}/skyline/services/audio/IAudioOut.cpp + ${source_DIR}/skyline/services/audio/IAudioDevice.cpp ${source_DIR}/skyline/services/audio/IAudioRendererManager.cpp ${source_DIR}/skyline/services/audio/IAudioRenderer/IAudioRenderer.cpp ${source_DIR}/skyline/services/audio/IAudioRenderer/voice.cpp diff --git a/app/src/main/cpp/skyline/services/audio/IAudioDevice.cpp b/app/src/main/cpp/skyline/services/audio/IAudioDevice.cpp new file mode 100644 index 00000000..44e84cd5 --- /dev/null +++ b/app/src/main/cpp/skyline/services/audio/IAudioDevice.cpp @@ -0,0 +1,51 @@ +// SPDX-License-Identifier: MPL-2.0 +// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/) + +#include +#include