mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-27 19:44:15 +01:00
audio: Stub out AudOutU::ListAudioOuts.
This commit is contained in:
parent
f4a3d28224
commit
7a50d56d0e
17
src/core/hle/service/audio/audio.cpp
Normal file
17
src/core/hle/service/audio/audio.cpp
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
// Copyright 2018 yuzu emulator team
|
||||||
|
// Licensed under GPLv2 or any later version
|
||||||
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
|
#include "core/hle/ipc_helpers.h"
|
||||||
|
#include "core/hle/service/audio/audio.h"
|
||||||
|
#include "core/hle/service/audio/audout_u.h"
|
||||||
|
|
||||||
|
namespace Service {
|
||||||
|
namespace Audio {
|
||||||
|
|
||||||
|
void InstallInterfaces(SM::ServiceManager& service_manager) {
|
||||||
|
std::make_shared<AudOutU>()->InstallAsService(service_manager);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace Audio
|
||||||
|
} // namespace Service
|
16
src/core/hle/service/audio/audio.h
Normal file
16
src/core/hle/service/audio/audio.h
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
// Copyright 2018 yuzu emulator team
|
||||||
|
// Licensed under GPLv2 or any later version
|
||||||
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "core/hle/service/service.h"
|
||||||
|
|
||||||
|
namespace Service {
|
||||||
|
namespace Audio {
|
||||||
|
|
||||||
|
/// Registers all Audio services with the specified service manager.
|
||||||
|
void InstallInterfaces(SM::ServiceManager& service_manager);
|
||||||
|
|
||||||
|
} // namespace Audio
|
||||||
|
} // namespace Service
|
26
src/core/hle/service/audio/audout_u.cpp
Normal file
26
src/core/hle/service/audio/audout_u.cpp
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
// Copyright 2018 yuzu emulator team
|
||||||
|
// Licensed under GPLv2 or any later version
|
||||||
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
|
#include "common/logging/log.h"
|
||||||
|
#include "core/hle/ipc_helpers.h"
|
||||||
|
#include "core/hle/service/audio/audout_u.h"
|
||||||
|
|
||||||
|
namespace Service {
|
||||||
|
namespace Audio {
|
||||||
|
|
||||||
|
void AudOutU::ListAudioOuts(Kernel::HLERequestContext& ctx) {
|
||||||
|
LOG_WARNING(Service, "(STUBBED) called");
|
||||||
|
IPC::RequestBuilder rb{ctx, 2};
|
||||||
|
rb.Push(RESULT_SUCCESS);
|
||||||
|
}
|
||||||
|
|
||||||
|
AudOutU::AudOutU() : ServiceFramework("audout:u") {
|
||||||
|
static const FunctionInfo functions[] = {
|
||||||
|
{0x00000000, &AudOutU::ListAudioOuts, "ListAudioOuts"},
|
||||||
|
};
|
||||||
|
RegisterHandlers(functions);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace Audio
|
||||||
|
} // namespace Service
|
23
src/core/hle/service/audio/audout_u.h
Normal file
23
src/core/hle/service/audio/audout_u.h
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
// Copyright 2018 yuzu emulator team
|
||||||
|
// Licensed under GPLv2 or any later version
|
||||||
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "core/hle/kernel/hle_ipc.h"
|
||||||
|
#include "core/hle/service/service.h"
|
||||||
|
|
||||||
|
namespace Service {
|
||||||
|
namespace Audio {
|
||||||
|
|
||||||
|
class AudOutU final : public ServiceFramework<AudOutU> {
|
||||||
|
public:
|
||||||
|
AudOutU();
|
||||||
|
~AudOutU() = default;
|
||||||
|
|
||||||
|
private:
|
||||||
|
void ListAudioOuts(Kernel::HLERequestContext& ctx);
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace Audio
|
||||||
|
} // namespace Service
|
@ -17,6 +17,7 @@
|
|||||||
#include "core/hle/service/am/am.h"
|
#include "core/hle/service/am/am.h"
|
||||||
#include "core/hle/service/aoc/aoc_u.h"
|
#include "core/hle/service/aoc/aoc_u.h"
|
||||||
#include "core/hle/service/apm/apm.h"
|
#include "core/hle/service/apm/apm.h"
|
||||||
|
#include "core/hle/service/audio/audio.h"
|
||||||
#include "core/hle/service/hid/hid.h"
|
#include "core/hle/service/hid/hid.h"
|
||||||
#include "core/hle/service/lm/lm.h"
|
#include "core/hle/service/lm/lm.h"
|
||||||
#include "core/hle/service/nvdrv/nvdrv.h"
|
#include "core/hle/service/nvdrv/nvdrv.h"
|
||||||
@ -164,6 +165,7 @@ void Init() {
|
|||||||
AM::InstallInterfaces(*SM::g_service_manager);
|
AM::InstallInterfaces(*SM::g_service_manager);
|
||||||
AOC::InstallInterfaces(*SM::g_service_manager);
|
AOC::InstallInterfaces(*SM::g_service_manager);
|
||||||
APM::InstallInterfaces(*SM::g_service_manager);
|
APM::InstallInterfaces(*SM::g_service_manager);
|
||||||
|
Audio::InstallInterfaces(*SM::g_service_manager);
|
||||||
HID::InstallInterfaces(*SM::g_service_manager);
|
HID::InstallInterfaces(*SM::g_service_manager);
|
||||||
LM::InstallInterfaces(*SM::g_service_manager);
|
LM::InstallInterfaces(*SM::g_service_manager);
|
||||||
NVDRV::InstallInterfaces(*SM::g_service_manager);
|
NVDRV::InstallInterfaces(*SM::g_service_manager);
|
||||||
|
Loading…
Reference in New Issue
Block a user