diff options
author | bunnei <bunneidev@gmail.com> | 2021-07-03 09:24:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-03 09:24:33 +0200 |
commit | 2fc0a760f09c4557d476204ef558743e6f42bd71 (patch) | |
tree | 87be7a47b82b30d3a2805f47a77b72ef28805af6 /src/core/hle/service/audio/audren_u.cpp | |
parent | Merge pull request #6459 from lat9nq/ubuntu-fixes (diff) | |
parent | Fix XC2/VOEZ crashing, add audio looping and a few misc fixes (diff) | |
download | yuzu-2fc0a760f09c4557d476204ef558743e6f42bd71.tar yuzu-2fc0a760f09c4557d476204ef558743e6f42bd71.tar.gz yuzu-2fc0a760f09c4557d476204ef558743e6f42bd71.tar.bz2 yuzu-2fc0a760f09c4557d476204ef558743e6f42bd71.tar.lz yuzu-2fc0a760f09c4557d476204ef558743e6f42bd71.tar.xz yuzu-2fc0a760f09c4557d476204ef558743e6f42bd71.tar.zst yuzu-2fc0a760f09c4557d476204ef558743e6f42bd71.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp index 800feba6e..7583d68b2 100644 --- a/src/core/hle/service/audio/audren_u.cpp +++ b/src/core/hle/service/audio/audren_u.cpp @@ -96,7 +96,7 @@ private: void RequestUpdateImpl(Kernel::HLERequestContext& ctx) { LOG_DEBUG(Service_Audio, "(STUBBED) called"); - std::vector<u8> output_params(ctx.GetWriteBufferSize()); + std::vector<u8> output_params(ctx.GetWriteBufferSize(), 0); auto result = renderer->UpdateAudioRenderer(ctx.ReadBuffer(), output_params); if (result.IsSuccess()) { @@ -110,17 +110,19 @@ private: void Start(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_Audio, "(STUBBED) called"); - IPC::ResponseBuilder rb{ctx, 2}; + const auto result = renderer->Start(); - rb.Push(ResultSuccess); + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(result); } void Stop(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_Audio, "(STUBBED) called"); - IPC::ResponseBuilder rb{ctx, 2}; + const auto result = renderer->Stop(); - rb.Push(ResultSuccess); + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(result); } void QuerySystemEvent(Kernel::HLERequestContext& ctx) { |