summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/audio
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-03 05:34:52 +0200
committerbunnei <bunneidev@gmail.com>2018-04-03 05:51:00 +0200
commit4c0cf3d5ff8295e1f77b8bca2e5399805d1beead (patch)
tree99013946d51206da81d7b6185eadcf116b9a415b /src/core/hle/service/audio
parentaudout_u: Implement GetAudioOutState. (diff)
downloadyuzu-4c0cf3d5ff8295e1f77b8bca2e5399805d1beead.tar
yuzu-4c0cf3d5ff8295e1f77b8bca2e5399805d1beead.tar.gz
yuzu-4c0cf3d5ff8295e1f77b8bca2e5399805d1beead.tar.bz2
yuzu-4c0cf3d5ff8295e1f77b8bca2e5399805d1beead.tar.lz
yuzu-4c0cf3d5ff8295e1f77b8bca2e5399805d1beead.tar.xz
yuzu-4c0cf3d5ff8295e1f77b8bca2e5399805d1beead.tar.zst
yuzu-4c0cf3d5ff8295e1f77b8bca2e5399805d1beead.zip
Diffstat (limited to 'src/core/hle/service/audio')
-rw-r--r--src/core/hle/service/audio/audren_u.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp
index 6d0461bbc..7990595aa 100644
--- a/src/core/hle/service/audio/audren_u.cpp
+++ b/src/core/hle/service/audio/audren_u.cpp
@@ -158,7 +158,7 @@ public:
{0x0, &IAudioDevice::ListAudioDeviceName, "ListAudioDeviceName"},
{0x1, &IAudioDevice::SetAudioDeviceOutputVolume, "SetAudioDeviceOutputVolume"},
{0x2, nullptr, "GetAudioDeviceOutputVolume"},
- {0x3, nullptr, "GetActiveAudioDeviceName"},
+ {0x3, &IAudioDevice::GetActiveAudioDeviceName, "GetActiveAudioDeviceName"},
{0x4, &IAudioDevice::QueryAudioDeviceSystemEvent, "QueryAudioDeviceSystemEvent"},
{0x5, &IAudioDevice::GetActiveChannelCount, "GetActiveChannelCount"},
{0x6, nullptr, "ListAudioDeviceNameAuto"},
@@ -199,6 +199,18 @@ private:
rb.Push(RESULT_SUCCESS);
}
+ void GetActiveAudioDeviceName(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service_Audio, "(STUBBED) called");
+ IPC::RequestParser rp{ctx};
+
+ const std::string audio_interface = "AudioDevice";
+ ctx.WriteBuffer(audio_interface.c_str(), audio_interface.size());
+
+ IPC::ResponseBuilder rb = rp.MakeBuilder(3, 0, 0);
+ rb.Push(RESULT_SUCCESS);
+ rb.Push<u32>(1);
+ }
+
void QueryAudioDeviceSystemEvent(Kernel::HLERequestContext& ctx) {
LOG_WARNING(Service_Audio, "(STUBBED) called");