diff options
| author | bunnei <bunneidev@gmail.com> | 2022-11-25 00:38:17 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-25 00:38:17 -0800 |
| commit | 64965cc658a6266ddb9878ffd53bd69e0a0f5b79 (patch) | |
| tree | 495b63ec25d2b5e8d5888004e5bca0dcdf67704b /src/core/hle/service/audio/hwopus.cpp | |
| parent | 20b62dbd30e597c6d3700a22fbde5bd10169dfb2 (diff) | |
| parent | 97f273e94e83a679f42faa9c81916a1c058112e1 (diff) | |
Merge pull request #9305 from lioncash/request
hle_ipc: Add helper function for determining element counts
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(); |
