diff options
author | Liam <byteslice@airmail.cc> | 2024-02-22 05:54:10 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-02-22 05:54:10 +0100 |
commit | c04567fad4825d08a169efb2f6b118fafe988a31 (patch) | |
tree | 22a027eef3876ffc8dc586ecc8ebed145b660eef /src | |
parent | audio: format (diff) | |
download | yuzu-c04567fad4825d08a169efb2f6b118fafe988a31.tar yuzu-c04567fad4825d08a169efb2f6b118fafe988a31.tar.gz yuzu-c04567fad4825d08a169efb2f6b118fafe988a31.tar.bz2 yuzu-c04567fad4825d08a169efb2f6b118fafe988a31.tar.lz yuzu-c04567fad4825d08a169efb2f6b118fafe988a31.tar.xz yuzu-c04567fad4825d08a169efb2f6b118fafe988a31.tar.zst yuzu-c04567fad4825d08a169efb2f6b118fafe988a31.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/audio/audio_controller.cpp | 7 | ||||
-rw-r--r-- | src/core/hle/service/audio/audio_controller.h | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/core/hle/service/audio/audio_controller.cpp b/src/core/hle/service/audio/audio_controller.cpp index d51c89118..c9804cf9c 100644 --- a/src/core/hle/service/audio/audio_controller.cpp +++ b/src/core/hle/service/audio/audio_controller.cpp @@ -36,7 +36,7 @@ IAudioController::IAudioController(Core::System& system_) {19, nullptr, "AcquireAudioVolumeUpdateEventForPlayReport"}, {20, nullptr, "AcquireAudioOutputDeviceUpdateEventForPlayReport"}, {21, nullptr, "GetAudioOutputTargetForPlayReport"}, - {22, nullptr, "NotifyHeadphoneVolumeWarningDisplayedEvent"}, + {22, D<&IAudioController::NotifyHeadphoneVolumeWarningDisplayedEvent>, "NotifyHeadphoneVolumeWarningDisplayedEvent"}, {23, nullptr, "SetSystemOutputMasterVolume"}, {24, nullptr, "GetSystemOutputMasterVolume"}, {25, nullptr, "GetAudioVolumeDataForPlayReport"}, @@ -150,6 +150,11 @@ Result IAudioController::GetHeadphoneOutputLevelMode( R_SUCCEED(); } +Result IAudioController::NotifyHeadphoneVolumeWarningDisplayedEvent() { + LOG_WARNING(Service_Audio, "(STUBBED) called"); + R_SUCCEED(); +} + Result IAudioController::SetSpeakerAutoMuteEnabled(bool is_speaker_auto_mute_enabled) { LOG_INFO(Audio, "called, is_speaker_auto_mute_enabled={}", is_speaker_auto_mute_enabled); diff --git a/src/core/hle/service/audio/audio_controller.h b/src/core/hle/service/audio/audio_controller.h index 9e8514373..d37c4843e 100644 --- a/src/core/hle/service/audio/audio_controller.h +++ b/src/core/hle/service/audio/audio_controller.h @@ -45,6 +45,7 @@ private: Set::AudioOutputMode output_mode); Result SetHeadphoneOutputLevelMode(HeadphoneOutputLevelMode output_level_mode); Result GetHeadphoneOutputLevelMode(Out<HeadphoneOutputLevelMode> out_output_level_mode); + Result NotifyHeadphoneVolumeWarningDisplayedEvent(); Result SetSpeakerAutoMuteEnabled(bool is_speaker_auto_mute_enabled); Result IsSpeakerAutoMuteEnabled(Out<bool> out_is_speaker_auto_mute_enabled); Result AcquireTargetNotification(OutCopyHandle<Kernel::KReadableEvent> out_notification_event); |