diff options
| author | 2018-04-02 23:34:52 -0400 | |
|---|---|---|
| committer | 2018-04-02 23:51:00 -0400 | |
| commit | 4c0cf3d5ff8295e1f77b8bca2e5399805d1beead (patch) | |
| tree | 99013946d51206da81d7b6185eadcf116b9a415b /src | |
| parent | audout_u: Implement GetAudioOutState. (diff) | |
| download | yuzu-4c0cf3d5ff8295e1f77b8bca2e5399805d1beead.tar.gz yuzu-4c0cf3d5ff8295e1f77b8bca2e5399805d1beead.tar.xz yuzu-4c0cf3d5ff8295e1f77b8bca2e5399805d1beead.zip | |
audren_u: Stub out GetActiveAudioDeviceName.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 14 |
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: | |||
| 158 | {0x0, &IAudioDevice::ListAudioDeviceName, "ListAudioDeviceName"}, | 158 | {0x0, &IAudioDevice::ListAudioDeviceName, "ListAudioDeviceName"}, |
| 159 | {0x1, &IAudioDevice::SetAudioDeviceOutputVolume, "SetAudioDeviceOutputVolume"}, | 159 | {0x1, &IAudioDevice::SetAudioDeviceOutputVolume, "SetAudioDeviceOutputVolume"}, |
| 160 | {0x2, nullptr, "GetAudioDeviceOutputVolume"}, | 160 | {0x2, nullptr, "GetAudioDeviceOutputVolume"}, |
| 161 | {0x3, nullptr, "GetActiveAudioDeviceName"}, | 161 | {0x3, &IAudioDevice::GetActiveAudioDeviceName, "GetActiveAudioDeviceName"}, |
| 162 | {0x4, &IAudioDevice::QueryAudioDeviceSystemEvent, "QueryAudioDeviceSystemEvent"}, | 162 | {0x4, &IAudioDevice::QueryAudioDeviceSystemEvent, "QueryAudioDeviceSystemEvent"}, |
| 163 | {0x5, &IAudioDevice::GetActiveChannelCount, "GetActiveChannelCount"}, | 163 | {0x5, &IAudioDevice::GetActiveChannelCount, "GetActiveChannelCount"}, |
| 164 | {0x6, nullptr, "ListAudioDeviceNameAuto"}, | 164 | {0x6, nullptr, "ListAudioDeviceNameAuto"}, |
| @@ -199,6 +199,18 @@ private: | |||
| 199 | rb.Push(RESULT_SUCCESS); | 199 | rb.Push(RESULT_SUCCESS); |
| 200 | } | 200 | } |
| 201 | 201 | ||
| 202 | void GetActiveAudioDeviceName(Kernel::HLERequestContext& ctx) { | ||
| 203 | LOG_WARNING(Service_Audio, "(STUBBED) called"); | ||
| 204 | IPC::RequestParser rp{ctx}; | ||
| 205 | |||
| 206 | const std::string audio_interface = "AudioDevice"; | ||
| 207 | ctx.WriteBuffer(audio_interface.c_str(), audio_interface.size()); | ||
| 208 | |||
| 209 | IPC::ResponseBuilder rb = rp.MakeBuilder(3, 0, 0); | ||
| 210 | rb.Push(RESULT_SUCCESS); | ||
| 211 | rb.Push<u32>(1); | ||
| 212 | } | ||
| 213 | |||
| 202 | void QueryAudioDeviceSystemEvent(Kernel::HLERequestContext& ctx) { | 214 | void QueryAudioDeviceSystemEvent(Kernel::HLERequestContext& ctx) { |
| 203 | LOG_WARNING(Service_Audio, "(STUBBED) called"); | 215 | LOG_WARNING(Service_Audio, "(STUBBED) called"); |
| 204 | 216 | ||