Skip to content
Snippets Groups Projects
Commit 32938774 authored by Lioncash's avatar Lioncash
Browse files

service/audio/hwopus: Enclose internals in an anonymous namespace

Makes it impossible to violate the ODR, as well as providing a place for
future changes.
parent 75b41748
No related branches found
No related tags found
No related merge requests found
......@@ -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};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment