diff options
author | bunnei <bunneidev@gmail.com> | 2018-02-14 05:16:19 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-02-14 05:54:13 +0100 |
commit | 516a95721c5ec7ae2f09cb1e7c9757903523d09e (patch) | |
tree | da87ccf3fbe378c9231ff935fd65018303c25040 /src/core/hle/service/am | |
parent | audio: Use WriteBuffer instead of BufferDescriptorB. (diff) | |
download | yuzu-516a95721c5ec7ae2f09cb1e7c9757903523d09e.tar yuzu-516a95721c5ec7ae2f09cb1e7c9757903523d09e.tar.gz yuzu-516a95721c5ec7ae2f09cb1e7c9757903523d09e.tar.bz2 yuzu-516a95721c5ec7ae2f09cb1e7c9757903523d09e.tar.lz yuzu-516a95721c5ec7ae2f09cb1e7c9757903523d09e.tar.xz yuzu-516a95721c5ec7ae2f09cb1e7c9757903523d09e.tar.zst yuzu-516a95721c5ec7ae2f09cb1e7c9757903523d09e.zip |
Diffstat (limited to 'src/core/hle/service/am')
-rw-r--r-- | src/core/hle/service/am/am.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 07cea8717..402105ea0 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -306,11 +306,11 @@ private: u64 offset = rp.Pop<u64>(); - const auto& output_buffer = ctx.BufferDescriptorC()[0]; + const size_t size{ctx.GetWriteBufferSize()}; - ASSERT(offset + output_buffer.Size() <= buffer.size()); + ASSERT(offset + size <= buffer.size()); - Memory::WriteBlock(output_buffer.Address(), buffer.data() + offset, output_buffer.Size()); + ctx.WriteBuffer(buffer.data() + offset, size); IPC::ResponseBuilder rb{ctx, 2}; |