summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/audio
diff options
context:
space:
mode:
authorDavid <25727384+ogniK5377@users.noreply.github.com>2020-04-21 04:57:30 +0200
committerGitHub <noreply@github.com>2020-04-21 04:57:30 +0200
commit11c63ca969f39481ccf75c204e21948f4fb41efa (patch)
treeedd0a3efd2515e42c9f6a820888fcd77df29460b /src/core/hle/service/audio
parentMerge pull request #3695 from ReinUsesLisp/default-attributes (diff)
downloadyuzu-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/service/audio')
-rw-r--r--src/core/hle/service/audio/audren_u.cpp9
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) {