mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 13:56:27 -05:00
a7a5835ffb
Allows Sea of Stars to boot. Fixes https://github.com/yuzu-emu/yuzu/issues/11415.
41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
namespace Core {
|
|
class System;
|
|
}
|
|
|
|
namespace Service::Audio {
|
|
|
|
struct OpusMultiStreamParametersEx {
|
|
u32 sample_rate;
|
|
u32 channel_count;
|
|
u32 number_streams;
|
|
u32 number_stereo_streams;
|
|
u32 use_large_frame_size;
|
|
u32 padding;
|
|
std::array<u8, 0x100> channel_mappings;
|
|
};
|
|
static_assert(sizeof(OpusMultiStreamParametersEx) == 0x118,
|
|
"OpusMultiStreamParametersEx has incorrect size");
|
|
|
|
class HwOpus final : public ServiceFramework<HwOpus> {
|
|
public:
|
|
explicit HwOpus(Core::System& system_);
|
|
~HwOpus() override;
|
|
|
|
private:
|
|
void OpenHardwareOpusDecoder(HLERequestContext& ctx);
|
|
void OpenHardwareOpusDecoderEx(HLERequestContext& ctx);
|
|
void OpenHardwareOpusDecoderForMultiStreamEx(HLERequestContext& ctx);
|
|
void GetWorkBufferSize(HLERequestContext& ctx);
|
|
void GetWorkBufferSizeEx(HLERequestContext& ctx);
|
|
void GetWorkBufferSizeExEx(HLERequestContext& ctx);
|
|
void GetWorkBufferSizeForMultiStreamEx(HLERequestContext& ctx);
|
|
};
|
|
|
|
} // namespace Service::Audio
|