summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/audio/hardware_opus_decoder_manager.h
blob: 29b1f16f59e5d1445d69d709cd3fc7a4a33a279b (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 IHardwareOpusDecoderManager final : public ServiceFramework<IHardwareOpusDecoderManager> {
public:
    explicit IHardwareOpusDecoderManager(Core::System& system_);
    ~IHardwareOpusDecoderManager() 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