summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/audio/hwopus.h
blob: d3960065e73090b20f4b7ecd3c6cc7487ef538b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "audio_core/opus/decoder_manager.h"
#include "core/hle/service/service.h"

namespace Core {
class System;
}

namespace Service::Audio {

class HwOpus final : public ServiceFramework<HwOpus> {
public:
    explicit HwOpus(Core::System& system_);
    ~HwOpus() override;

private:
    void OpenHardwareOpusDecoder(HLERequestContext& ctx);
    void GetWorkBufferSize(HLERequestContext& ctx);
    void OpenHardwareOpusDecoderForMultiStream(HLERequestContext& ctx);
    void GetWorkBufferSizeForMultiStream(HLERequestContext& ctx);
    void OpenHardwareOpusDecoderEx(HLERequestContext& ctx);
    void GetWorkBufferSizeEx(HLERequestContext& ctx);
    void OpenHardwareOpusDecoderForMultiStreamEx(HLERequestContext& ctx);
    void GetWorkBufferSizeForMultiStreamEx(HLERequestContext& ctx);
    void GetWorkBufferSizeExEx(HLERequestContext& ctx);
    void GetWorkBufferSizeForMultiStreamExEx(HLERequestContext& ctx);

    Core::System& system;
    AudioCore::OpusDecoder::OpusDecoderManager impl;
};

} // namespace Service::Audio