summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/am.cpp
diff options
context:
space:
mode:
authormailwl <mailwl@gmail.com>2018-02-22 15:28:15 +0100
committermailwl <mailwl@gmail.com>2018-02-22 15:28:15 +0100
commite4f94ee30bce782eb9a02cd988a9325a9f97e0d6 (patch)
tree9aff20e8bc3f135eb4df6275347ec5ec43923d7d /src/core/hle/service/am/am.cpp
parentStub am::SetScreenShotPermission, and bsd::StartMonitoring functions (diff)
downloadyuzu-e4f94ee30bce782eb9a02cd988a9325a9f97e0d6.tar
yuzu-e4f94ee30bce782eb9a02cd988a9325a9f97e0d6.tar.gz
yuzu-e4f94ee30bce782eb9a02cd988a9325a9f97e0d6.tar.bz2
yuzu-e4f94ee30bce782eb9a02cd988a9325a9f97e0d6.tar.lz
yuzu-e4f94ee30bce782eb9a02cd988a9325a9f97e0d6.tar.xz
yuzu-e4f94ee30bce782eb9a02cd988a9325a9f97e0d6.tar.zst
yuzu-e4f94ee30bce782eb9a02cd988a9325a9f97e0d6.zip
Diffstat (limited to 'src/core/hle/service/am/am.cpp')
-rw-r--r--src/core/hle/service/am/am.cpp33
1 files changed, 32 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index d36d37089..d3a674cf6 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -34,7 +34,38 @@ void IWindowController::AcquireForegroundRights(Kernel::HLERequestContext& ctx)
rb.Push(RESULT_SUCCESS);
}
-IAudioController::IAudioController() : ServiceFramework("IAudioController") {}
+IAudioController::IAudioController() : ServiceFramework("IAudioController") {
+ static const FunctionInfo functions[] = {
+ {0, &IAudioController::SetExpectedMasterVolume, "SetExpectedMasterVolume"},
+ {1, &IAudioController::GetMainAppletExpectedMasterVolume,
+ "GetMainAppletExpectedMasterVolume"},
+ {2, &IAudioController::GetLibraryAppletExpectedMasterVolume,
+ "GetLibraryAppletExpectedMasterVolume"},
+ {3, nullptr, "ChangeMainAppletMasterVolume"},
+ {4, nullptr, "SetTransparentVolumeRate"},
+ };
+ RegisterHandlers(functions);
+}
+
+void IAudioController::SetExpectedMasterVolume(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service_AM, "(STUBBED) called");
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+}
+
+void IAudioController::GetMainAppletExpectedMasterVolume(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service_AM, "(STUBBED) called");
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(RESULT_SUCCESS);
+ rb.Push(volume);
+}
+
+void IAudioController::GetLibraryAppletExpectedMasterVolume(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service_AM, "(STUBBED) called");
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(RESULT_SUCCESS);
+ rb.Push(volume);
+}
IDisplayController::IDisplayController() : ServiceFramework("IDisplayController") {}