diff options
| author | Lioncash <mathew1800@gmail.com> | 2022-11-23 13:25:14 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2022-11-23 13:43:20 -0500 |
| commit | 97f273e94e83a679f42faa9c81916a1c058112e1 (patch) | |
| tree | e2a2777ae3bec31b544516988fae36e8080150ff /src/core/hle/service/audio/hwopus.cpp | |
| parent | 59335f6796480f6b98f981cbb672cdb112a8a3f8 (diff) | |
service: Make use of buffer element count helpers
Diffstat (limited to 'src/core/hle/service/audio/hwopus.cpp')
| -rw-r--r-- | src/core/hle/service/audio/hwopus.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/audio/hwopus.cpp b/src/core/hle/service/audio/hwopus.cpp index 8bafc3a98..825fb8bcc 100644 --- a/src/core/hle/service/audio/hwopus.cpp +++ b/src/core/hle/service/audio/hwopus.cpp @@ -68,7 +68,7 @@ private: ExtraBehavior extra_behavior) { u32 consumed = 0; u32 sample_count = 0; - std::vector<opus_int16> samples(ctx.GetWriteBufferSize() / sizeof(opus_int16)); + std::vector<opus_int16> samples(ctx.GetWriteBufferNumElements<opus_int16>()); if (extra_behavior == ExtraBehavior::ResetContext) { ResetDecoderContext(); |
