diff options
author | Liam <byteslice@airmail.cc> | 2024-02-20 06:55:02 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-02-21 04:15:37 +0100 |
commit | f65539504f009bb18409907fef429bf8c70e0508 (patch) | |
tree | 286cb5600bf3a6751dae2c7cd852fc3316d69014 /src/core/hle/service/audio/hardware_opus_decoder_manager.h | |
parent | audio: split IAudioDevice, IAudioRenderer, move IAudioRendererManager (diff) | |
download | yuzu-f65539504f009bb18409907fef429bf8c70e0508.tar yuzu-f65539504f009bb18409907fef429bf8c70e0508.tar.gz yuzu-f65539504f009bb18409907fef429bf8c70e0508.tar.bz2 yuzu-f65539504f009bb18409907fef429bf8c70e0508.tar.lz yuzu-f65539504f009bb18409907fef429bf8c70e0508.tar.xz yuzu-f65539504f009bb18409907fef429bf8c70e0508.tar.zst yuzu-f65539504f009bb18409907fef429bf8c70e0508.zip |
Diffstat (limited to 'src/core/hle/service/audio/hardware_opus_decoder_manager.h')
-rw-r--r-- | src/core/hle/service/audio/hardware_opus_decoder_manager.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/core/hle/service/audio/hardware_opus_decoder_manager.h b/src/core/hle/service/audio/hardware_opus_decoder_manager.h new file mode 100644 index 000000000..29b1f16f5 --- /dev/null +++ b/src/core/hle/service/audio/hardware_opus_decoder_manager.h @@ -0,0 +1,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 |