diff options
author | David <25727384+ogniK5377@users.noreply.github.com> | 2020-04-21 04:57:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 04:57:30 +0200 |
commit | 11c63ca969f39481ccf75c204e21948f4fb41efa (patch) | |
tree | edd0a3efd2515e42c9f6a820888fcd77df29460b /src/core/hle | |
parent | Merge pull request #3695 from ReinUsesLisp/default-attributes (diff) | |
download | yuzu-11c63ca969f39481ccf75c204e21948f4fb41efa.tar yuzu-11c63ca969f39481ccf75c204e21948f4fb41efa.tar.gz yuzu-11c63ca969f39481ccf75c204e21948f4fb41efa.tar.bz2 yuzu-11c63ca969f39481ccf75c204e21948f4fb41efa.tar.lz yuzu-11c63ca969f39481ccf75c204e21948f4fb41efa.tar.xz yuzu-11c63ca969f39481ccf75c204e21948f4fb41efa.tar.zst yuzu-11c63ca969f39481ccf75c204e21948f4fb41efa.zip |
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp index 07dd2caec..d8359abaa 100644 --- a/src/core/hle/service/audio/audren_u.cpp +++ b/src/core/hle/service/audio/audren_u.cpp @@ -94,9 +94,14 @@ private: void RequestUpdateImpl(Kernel::HLERequestContext& ctx) { LOG_DEBUG(Service_Audio, "(STUBBED) called"); - ctx.WriteBuffer(renderer->UpdateAudioRenderer(ctx.ReadBuffer())); + auto result = renderer->UpdateAudioRenderer(ctx.ReadBuffer()); + + if (result.Succeeded()) { + ctx.WriteBuffer(result.Unwrap()); + } + IPC::ResponseBuilder rb{ctx, 2}; - rb.Push(RESULT_SUCCESS); + rb.Push(result.Code()); } void Start(Kernel::HLERequestContext& ctx) { |