2022-04-23 22:49:07 +04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-12-28 19:15:37 +04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
class System;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Service::Audio {
|
|
|
|
|
2022-09-17 09:10:33 +04:00
|
|
|
struct OpusMultiStreamParametersEx {
|
|
|
|
u32 sample_rate;
|
|
|
|
u32 channel_count;
|
|
|
|
u32 number_streams;
|
|
|
|
u32 number_stereo_streams;
|
|
|
|
u32 use_large_frame_size;
|
|
|
|
u32 padding;
|
|
|
|
std::array<u32, 64> channel_mappings;
|
|
|
|
};
|
|
|
|
|
2020-12-28 19:15:37 +04:00
|
|
|
class HwOpus final : public ServiceFramework<HwOpus> {
|
|
|
|
public:
|
|
|
|
explicit HwOpus(Core::System& system_);
|
|
|
|
~HwOpus() override;
|
|
|
|
|
|
|
|
private:
|
2021-06-25 07:18:27 +04:00
|
|
|
void OpenHardwareOpusDecoder(Kernel::HLERequestContext& ctx);
|
|
|
|
void OpenHardwareOpusDecoderEx(Kernel::HLERequestContext& ctx);
|
2020-12-28 19:15:37 +04:00
|
|
|
void GetWorkBufferSize(Kernel::HLERequestContext& ctx);
|
2021-06-25 07:18:27 +04:00
|
|
|
void GetWorkBufferSizeEx(Kernel::HLERequestContext& ctx);
|
2022-09-17 09:10:33 +04:00
|
|
|
void GetWorkBufferSizeForMultiStreamEx(Kernel::HLERequestContext& ctx);
|
2020-12-28 19:15:37 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Service::Audio
|