mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-17 00:50:04 +00:00
1a954b2a59
Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
31 lines
1.0 KiB
C++
31 lines
1.0 KiB
C++
// Copyright 2018 yuzu emulator team
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "core/hle/service/audio/codecctl.h"
|
|
|
|
namespace Service::Audio {
|
|
|
|
CodecCtl::CodecCtl(Core::System& system_) : ServiceFramework{system_, "codecctl"} {
|
|
static const FunctionInfo functions[] = {
|
|
{0, nullptr, "InitializeCodecController"},
|
|
{1, nullptr, "FinalizeCodecController"},
|
|
{2, nullptr, "SleepCodecController"},
|
|
{3, nullptr, "WakeCodecController"},
|
|
{4, nullptr, "SetCodecVolume"},
|
|
{5, nullptr, "GetCodecVolumeMax"},
|
|
{6, nullptr, "GetCodecVolumeMin"},
|
|
{7, nullptr, "SetCodecActiveTarget"},
|
|
{8, nullptr, "GetCodecActiveTarget"},
|
|
{9, nullptr, "BindCodecHeadphoneMicJackInterrupt"},
|
|
{10, nullptr, "IsCodecHeadphoneMicJackInserted"},
|
|
{11, nullptr, "ClearCodecHeadphoneMicJackInterrupt"},
|
|
{12, nullptr, "IsCodecDeviceRequested"},
|
|
};
|
|
RegisterHandlers(functions);
|
|
}
|
|
|
|
CodecCtl::~CodecCtl() = default;
|
|
|
|
} // namespace Service::Audio
|