Files
yuzu/src/core/hle/service/audio/hwopus.h

42 lines
1.2 KiB
C
Raw Normal View History

2022-11-05 13:58:44 +01:00
// 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;
2023-08-29 03:02:26 +02:00
std::array<u8, 0x100> channel_mappings;
2022-11-05 13:58:44 +01:00
};
2023-08-29 03:02:26 +02:00
static_assert(sizeof(OpusMultiStreamParametersEx) == 0x118,
"OpusMultiStreamParametersEx has incorrect size");
2022-11-05 13:58:44 +01:00
class HwOpus final : public ServiceFramework<HwOpus> {
public:
explicit HwOpus(Core::System& system_);
~HwOpus() override;
private:
2023-03-04 09:58:45 +01:00
void OpenHardwareOpusDecoder(HLERequestContext& ctx);
void OpenHardwareOpusDecoderEx(HLERequestContext& ctx);
2023-08-29 03:02:26 +02:00
void OpenHardwareOpusDecoderForMultiStreamEx(HLERequestContext& ctx);
2023-03-04 09:58:45 +01:00
void GetWorkBufferSize(HLERequestContext& ctx);
void GetWorkBufferSizeEx(HLERequestContext& ctx);
2023-08-30 22:22:32 +02:00
void GetWorkBufferSizeExEx(HLERequestContext& ctx);
2023-03-04 09:58:45 +01:00
void GetWorkBufferSizeForMultiStreamEx(HLERequestContext& ctx);
2022-11-05 13:58:44 +01:00
};
} // namespace Service::Audio