From f8712e50e6860616b4ea86d57a9b09cd99aad728 Mon Sep 17 00:00:00 2001 From: JPikachu Date: Sat, 28 Feb 2026 01:06:22 +0100 Subject: [PATCH] [audio] stub SetAudioDeviceOutputVolumeAutoTuneEnabled and IsAudioDeviceOutputVolumeAutoTuneEnabled (#3654) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For Pokémon LeafGreen Version and Pokémon FireRed Version Co-authored-by: JPikachu Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3654 Reviewed-by: Maufeat Reviewed-by: Lizzie Co-authored-by: JPikachu Co-committed-by: JPikachu --- src/core/hle/service/audio/audio_device.cpp | 17 ++++++++++++++--- src/core/hle/service/audio/audio_device.h | 5 +++++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/core/hle/service/audio/audio_device.cpp b/src/core/hle/service/audio/audio_device.cpp index 9bf78c4a55..eb64892ed8 100644 --- a/src/core/hle/service/audio/audio_device.cpp +++ b/src/core/hle/service/audio/audio_device.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project @@ -36,8 +36,8 @@ IAudioDevice::IAudioDevice(Core::System& system_, u64 applet_resource_user_id, u {16, nullptr, "ReleaseAudioInputDeviceNotification"}, //17.0.0+ {17, nullptr, "AcquireAudioOutputDeviceNotification"}, //17.0.0+ {18, nullptr, "ReleaseAudioOutputDeviceNotification"}, //17.0.0+ - {19, nullptr, "SetAudioDeviceOutputVolumeAutoTuneEnabled"}, //18.0.0+ - {20, nullptr, "IsAudioDeviceOutputVolumeAutoTuneEnabled"}, //18.0.0+ + {19, D<&IAudioDevice::SetAudioDeviceOutputVolumeAutoTuneEnabled>, "SetAudioDeviceOutputVolumeAutoTuneEnabled"}, //18.0.0+ + {20, D<&IAudioDevice::IsAudioDeviceOutputVolumeAutoTuneEnabled>, "IsAudioDeviceOutputVolumeAutoTuneEnabled"}, //18.0.0+ {21, nullptr, "IsActiveOutputDeviceEstimatedLowLatency"} //21.0.0+ }; RegisterHandlers(functions); @@ -170,4 +170,15 @@ Result IAudioDevice::ListAudioOutputDeviceName( R_SUCCEED(); } +Result IAudioDevice::SetAudioDeviceOutputVolumeAutoTuneEnabled(bool enabled) { + LOG_WARNING(Service_Audio, "(STUBBED) called"); + R_SUCCEED(); +} + +Result IAudioDevice::IsAudioDeviceOutputVolumeAutoTuneEnabled(Out out_enabled) { + LOG_WARNING(Service_Audio, "(STUBBED) called"); + *out_enabled = false; + R_SUCCEED(); +} + } // namespace Service::Audio diff --git a/src/core/hle/service/audio/audio_device.h b/src/core/hle/service/audio/audio_device.h index 752157272c..f6c12fbfeb 100644 --- a/src/core/hle/service/audio/audio_device.h +++ b/src/core/hle/service/audio/audio_device.h @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -49,6 +52,8 @@ private: Result ListAudioOutputDeviceName( OutArray out_names, Out out_count); + Result SetAudioDeviceOutputVolumeAutoTuneEnabled(bool enabled); + Result IsAudioDeviceOutputVolumeAutoTuneEnabled(Out out_enabled); KernelHelpers::ServiceContext service_context; std::unique_ptr impl;