diff options
author | Morph1984 <39850852+Morph1984@users.noreply.github.com> | 2019-09-03 22:05:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-03 22:05:33 +0200 |
commit | ba661c8d9a4f28976613223b0cc459da9e0e3436 (patch) | |
tree | 89e8b5d21ebf22f9a44b3200744ae78db121b9bd /src/core/hle/service | |
parent | Merge pull request #2765 from FernandoS27/dma-fix (diff) | |
download | yuzu-ba661c8d9a4f28976613223b0cc459da9e0e3436.tar yuzu-ba661c8d9a4f28976613223b0cc459da9e0e3436.tar.gz yuzu-ba661c8d9a4f28976613223b0cc459da9e0e3436.tar.bz2 yuzu-ba661c8d9a4f28976613223b0cc459da9e0e3436.tar.lz yuzu-ba661c8d9a4f28976613223b0cc459da9e0e3436.tar.xz yuzu-ba661c8d9a4f28976613223b0cc459da9e0e3436.tar.zst yuzu-ba661c8d9a4f28976613223b0cc459da9e0e3436.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp index 5b0b7f17e..278332cfe 100644 --- a/src/core/hle/service/audio/audren_u.cpp +++ b/src/core/hle/service/audio/audren_u.cpp @@ -165,13 +165,13 @@ public: static const FunctionInfo functions[] = { {0, &IAudioDevice::ListAudioDeviceName, "ListAudioDeviceName"}, {1, &IAudioDevice::SetAudioDeviceOutputVolume, "SetAudioDeviceOutputVolume"}, - {2, nullptr, "GetAudioDeviceOutputVolume"}, + {2, &IAudioDevice::GetAudioDeviceOutputVolume, "GetAudioDeviceOutputVolume"}, {3, &IAudioDevice::GetActiveAudioDeviceName, "GetActiveAudioDeviceName"}, {4, &IAudioDevice::QueryAudioDeviceSystemEvent, "QueryAudioDeviceSystemEvent"}, {5, &IAudioDevice::GetActiveChannelCount, "GetActiveChannelCount"}, {6, &IAudioDevice::ListAudioDeviceName, "ListAudioDeviceNameAuto"}, {7, &IAudioDevice::SetAudioDeviceOutputVolume, "SetAudioDeviceOutputVolumeAuto"}, - {8, nullptr, "GetAudioDeviceOutputVolumeAuto"}, + {8, &IAudioDevice::GetAudioDeviceOutputVolume, "GetAudioDeviceOutputVolumeAuto"}, {10, &IAudioDevice::GetActiveAudioDeviceName, "GetActiveAudioDeviceNameAuto"}, {11, nullptr, "QueryAudioDeviceInputEvent"}, {12, &IAudioDevice::QueryAudioDeviceOutputEvent, "QueryAudioDeviceOutputEvent"}, @@ -246,6 +246,19 @@ private: rb.Push(RESULT_SUCCESS); } + void GetAudioDeviceOutputVolume(Kernel::HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + + const auto device_name_buffer = ctx.ReadBuffer(); + const std::string name = Common::StringFromBuffer(device_name_buffer); + + LOG_WARNING(Service_Audio, "(STUBBED) called. name={}", name); + + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(RESULT_SUCCESS); + rb.Push<u32>(1); + } + void GetActiveAudioDeviceName(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_Audio, "(STUBBED) called"); |