diff options
| author | 2022-10-19 05:38:12 +0100 | |
|---|---|---|
| committer | 2022-10-19 06:16:15 +0100 | |
| commit | 7bd3930939dfafc463b87b6df965b8b4391f1f56 (patch) | |
| tree | 48fef17d69a55a94bd6ec8f2d843ed2730032b50 /src/core | |
| parent | Merge pull request #9054 from Docteh/just_lz4 (diff) | |
| download | yuzu-7bd3930939dfafc463b87b6df965b8b4391f1f56.tar.gz yuzu-7bd3930939dfafc463b87b6df965b8b4391f1f56.tar.xz yuzu-7bd3930939dfafc463b87b6df965b8b4391f1f56.zip | |
Update audio_core for firmware 15.0.0
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/audio/audctl.cpp | 16 | ||||
| -rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 26 |
2 files changed, 42 insertions, 0 deletions
diff --git a/src/core/hle/service/audio/audctl.cpp b/src/core/hle/service/audio/audctl.cpp index 4a2ae5f88..5abf22ba4 100644 --- a/src/core/hle/service/audio/audctl.cpp +++ b/src/core/hle/service/audio/audctl.cpp | |||
| @@ -45,9 +45,25 @@ AudCtl::AudCtl(Core::System& system_) : ServiceFramework{system_, "audctl"} { | |||
| 45 | {32, nullptr, "GetActiveOutputTarget"}, | 45 | {32, nullptr, "GetActiveOutputTarget"}, |
| 46 | {33, nullptr, "GetTargetDeviceInfo"}, | 46 | {33, nullptr, "GetTargetDeviceInfo"}, |
| 47 | {34, nullptr, "AcquireTargetNotification"}, | 47 | {34, nullptr, "AcquireTargetNotification"}, |
| 48 | {35, nullptr, "SetHearingProtectionSafeguardTimerRemainingTimeForDebug"}, | ||
| 49 | {36, nullptr, "GetHearingProtectionSafeguardTimerRemainingTimeForDebug"}, | ||
| 50 | {37, nullptr, "SetHearingProtectionSafeguardEnabled"}, | ||
| 51 | {38, nullptr, "IsHearingProtectionSafeguardEnabled"}, | ||
| 52 | {39, nullptr, "IsHearingProtectionSafeguardMonitoringOutputForDebug"}, | ||
| 53 | {40, nullptr, "GetSystemInformationForDebug"}, | ||
| 54 | {41, nullptr, "SetVolumeButtonLongPressTime"}, | ||
| 55 | {42, nullptr, "SetNativeVolumeForDebug"}, | ||
| 48 | {10000, nullptr, "NotifyAudioOutputTargetForPlayReport"}, | 56 | {10000, nullptr, "NotifyAudioOutputTargetForPlayReport"}, |
| 49 | {10001, nullptr, "NotifyAudioOutputChannelCountForPlayReport"}, | 57 | {10001, nullptr, "NotifyAudioOutputChannelCountForPlayReport"}, |
| 50 | {10002, nullptr, "NotifyUnsupportedUsbOutputDeviceAttachedForPlayReport"}, | 58 | {10002, nullptr, "NotifyUnsupportedUsbOutputDeviceAttachedForPlayReport"}, |
| 59 | {10100, nullptr, "GetAudioVolumeDataForPlayReport"}, | ||
| 60 | {10101, nullptr, "BindAudioVolumeUpdateEventForPlayReport"}, | ||
| 61 | {10102, nullptr, "BindAudioOutputTargetUpdateEventForPlayReport"}, | ||
| 62 | {10103, nullptr, "GetAudioOutputTargetForPlayReport"}, | ||
| 63 | {10104, nullptr, "GetAudioOutputChannelCountForPlayReport"}, | ||
| 64 | {10105, nullptr, "BindAudioOutputChannelCountUpdateEventForPlayReport"}, | ||
| 65 | {10106, nullptr, "GetDefaultAudioOutputTargetForPlayReport"}, | ||
| 66 | {50000, nullptr, "SetAnalogInputBoostGainForPrototyping"}, | ||
| 51 | }; | 67 | }; |
| 52 | // clang-format on | 68 | // clang-format on |
| 53 | 69 | ||
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp index 60c30cd5b..13423dca6 100644 --- a/src/core/hle/service/audio/audren_u.cpp +++ b/src/core/hle/service/audio/audren_u.cpp | |||
| @@ -52,6 +52,8 @@ public: | |||
| 52 | {9, &IAudioRenderer::GetRenderingTimeLimit, "GetRenderingTimeLimit"}, | 52 | {9, &IAudioRenderer::GetRenderingTimeLimit, "GetRenderingTimeLimit"}, |
| 53 | {10, &IAudioRenderer::RequestUpdate, "RequestUpdateAuto"}, | 53 | {10, &IAudioRenderer::RequestUpdate, "RequestUpdateAuto"}, |
| 54 | {11, nullptr, "ExecuteAudioRendererRendering"}, | 54 | {11, nullptr, "ExecuteAudioRendererRendering"}, |
| 55 | {12, &IAudioRenderer::SetVoiceDropParameter, "SetVoiceDropParameter"}, | ||
| 56 | {13, &IAudioRenderer::GetVoiceDropParameter, "GetVoiceDropParameter"}, | ||
| 55 | }; | 57 | }; |
| 56 | // clang-format on | 58 | // clang-format on |
| 57 | RegisterHandlers(functions); | 59 | RegisterHandlers(functions); |
| @@ -205,6 +207,30 @@ private: | |||
| 205 | LOG_DEBUG(Service_Audio, "called"); | 207 | LOG_DEBUG(Service_Audio, "called"); |
| 206 | } | 208 | } |
| 207 | 209 | ||
| 210 | void SetVoiceDropParameter(Kernel::HLERequestContext& ctx) { | ||
| 211 | LOG_DEBUG(Service_Audio, "called"); | ||
| 212 | |||
| 213 | IPC::RequestParser rp{ctx}; | ||
| 214 | auto voice_drop_param{rp.Pop<f32>()}; | ||
| 215 | |||
| 216 | auto& system_ = impl->GetSystem(); | ||
| 217 | system_.SetVoiceDropParameter(voice_drop_param); | ||
| 218 | |||
| 219 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 220 | rb.Push(ResultSuccess); | ||
| 221 | } | ||
| 222 | |||
| 223 | void GetVoiceDropParameter(Kernel::HLERequestContext& ctx) { | ||
| 224 | LOG_DEBUG(Service_Audio, "called"); | ||
| 225 | |||
| 226 | auto& system_ = impl->GetSystem(); | ||
| 227 | auto voice_drop_param{system_.GetVoiceDropParameter()}; | ||
| 228 | |||
| 229 | IPC::ResponseBuilder rb{ctx, 3}; | ||
| 230 | rb.Push(ResultSuccess); | ||
| 231 | rb.Push(voice_drop_param); | ||
| 232 | } | ||
| 233 | |||
| 208 | KernelHelpers::ServiceContext service_context; | 234 | KernelHelpers::ServiceContext service_context; |
| 209 | Kernel::KEvent* rendered_event; | 235 | Kernel::KEvent* rendered_event; |
| 210 | Manager& manager; | 236 | Manager& manager; |