summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-03-07 11:32:40 +0100
committerLioncash <mathew1800@gmail.com>2019-03-07 11:32:42 +0100
commit329387745615a0d6cdb06c9c540667693fc625bf (patch)
tree3db888e41f1938e633c28e66fcc935c50a162a67 /src/core/hle/service
parentMerge pull request #2199 from lioncash/arbiter (diff)
downloadyuzu-329387745615a0d6cdb06c9c540667693fc625bf.tar
yuzu-329387745615a0d6cdb06c9c540667693fc625bf.tar.gz
yuzu-329387745615a0d6cdb06c9c540667693fc625bf.tar.bz2
yuzu-329387745615a0d6cdb06c9c540667693fc625bf.tar.lz
yuzu-329387745615a0d6cdb06c9c540667693fc625bf.tar.xz
yuzu-329387745615a0d6cdb06c9c540667693fc625bf.tar.zst
yuzu-329387745615a0d6cdb06c9c540667693fc625bf.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/audio/hwopus.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/audio/hwopus.cpp b/src/core/hle/service/audio/hwopus.cpp
index 11eba4a12..00a4b9d53 100644
--- a/src/core/hle/service/audio/hwopus.cpp
+++ b/src/core/hle/service/audio/hwopus.cpp
@@ -16,7 +16,7 @@
#include "core/hle/service/audio/hwopus.h"
namespace Service::Audio {
-
+namespace {
struct OpusDeleter {
void operator()(void* ptr) const {
operator delete(ptr);
@@ -178,10 +178,11 @@ private:
u32 channel_count;
};
-static std::size_t WorkerBufferSize(u32 channel_count) {
+std::size_t WorkerBufferSize(u32 channel_count) {
ASSERT_MSG(channel_count == 1 || channel_count == 2, "Invalid channel count");
return opus_decoder_get_size(static_cast<int>(channel_count));
}
+} // Anonymous namespace
void HwOpus::GetWorkBufferSize(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};