diff options
author | greggameplayer <33609333+greggameplayer@users.noreply.github.com> | 2018-11-06 19:05:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-06 19:05:57 +0100 |
commit | d3b9599b2dd084db5b180a6b13ea0ceaec5c7587 (patch) | |
tree | 79bcd8922cb90d06b61e07b5cc6e84e320aa3128 /src/core/hle/service/audio/hwopus.cpp | |
parent | correct syntax (diff) | |
parent | Merge pull request #1649 from degasus/split_resource_manager (diff) | |
download | yuzu-d3b9599b2dd084db5b180a6b13ea0ceaec5c7587.tar yuzu-d3b9599b2dd084db5b180a6b13ea0ceaec5c7587.tar.gz yuzu-d3b9599b2dd084db5b180a6b13ea0ceaec5c7587.tar.bz2 yuzu-d3b9599b2dd084db5b180a6b13ea0ceaec5c7587.tar.lz yuzu-d3b9599b2dd084db5b180a6b13ea0ceaec5c7587.tar.xz yuzu-d3b9599b2dd084db5b180a6b13ea0ceaec5c7587.tar.zst yuzu-d3b9599b2dd084db5b180a6b13ea0ceaec5c7587.zip |
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 7168c6a10..783c39503 100644 --- a/src/core/hle/service/audio/hwopus.cpp +++ b/src/core/hle/service/audio/hwopus.cpp @@ -161,7 +161,7 @@ void HwOpus::OpenOpusDecoder(Kernel::HLERequestContext& ctx) { ASSERT_MSG(channel_count == 1 || channel_count == 2, "Invalid channel count"); std::size_t worker_sz = WorkerBufferSize(channel_count); - ASSERT_MSG(buffer_sz < worker_sz, "Worker buffer too large"); + ASSERT_MSG(buffer_sz >= worker_sz, "Worker buffer too large"); std::unique_ptr<OpusDecoder, OpusDeleter> decoder{ static_cast<OpusDecoder*>(operator new(worker_sz))}; if (opus_decoder_init(decoder.get(), sample_rate, channel_count)) { |