diff options
| author | 2019-09-03 23:13:32 -0400 | |
|---|---|---|
| committer | 2019-09-03 23:13:32 -0400 | |
| commit | 1449ed9dbf7d968d9db2e5bc04b97c4950086a47 (patch) | |
| tree | b0f4fd13421a3f664fbd87381a902214cba49123 /src | |
| parent | Merge pull request #2765 from FernandoS27/dma-fix (diff) | |
| download | yuzu-1449ed9dbf7d968d9db2e5bc04b97c4950086a47.tar.gz yuzu-1449ed9dbf7d968d9db2e5bc04b97c4950086a47.tar.xz yuzu-1449ed9dbf7d968d9db2e5bc04b97c4950086a47.zip | |
audren_u: Stub IAudioDevice::QueryAudioDeviceInputEvent
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp index 5b0b7f17e..8e0cd96be 100644 --- a/src/core/hle/service/audio/audren_u.cpp +++ b/src/core/hle/service/audio/audren_u.cpp | |||
| @@ -173,7 +173,7 @@ public: | |||
| 173 | {7, &IAudioDevice::SetAudioDeviceOutputVolume, "SetAudioDeviceOutputVolumeAuto"}, | 173 | {7, &IAudioDevice::SetAudioDeviceOutputVolume, "SetAudioDeviceOutputVolumeAuto"}, |
| 174 | {8, nullptr, "GetAudioDeviceOutputVolumeAuto"}, | 174 | {8, nullptr, "GetAudioDeviceOutputVolumeAuto"}, |
| 175 | {10, &IAudioDevice::GetActiveAudioDeviceName, "GetActiveAudioDeviceNameAuto"}, | 175 | {10, &IAudioDevice::GetActiveAudioDeviceName, "GetActiveAudioDeviceNameAuto"}, |
| 176 | {11, nullptr, "QueryAudioDeviceInputEvent"}, | 176 | {11, &IAudioDevice::QueryAudioDeviceInputEvent, "QueryAudioDeviceInputEvent"}, |
| 177 | {12, &IAudioDevice::QueryAudioDeviceOutputEvent, "QueryAudioDeviceOutputEvent"}, | 177 | {12, &IAudioDevice::QueryAudioDeviceOutputEvent, "QueryAudioDeviceOutputEvent"}, |
| 178 | {13, nullptr, "GetAudioSystemMasterVolumeSetting"}, | 178 | {13, nullptr, "GetAudioSystemMasterVolumeSetting"}, |
| 179 | }; | 179 | }; |
| @@ -183,6 +183,10 @@ public: | |||
| 183 | buffer_event = Kernel::WritableEvent::CreateEventPair(kernel, Kernel::ResetType::Automatic, | 183 | buffer_event = Kernel::WritableEvent::CreateEventPair(kernel, Kernel::ResetType::Automatic, |
| 184 | "IAudioOutBufferReleasedEvent"); | 184 | "IAudioOutBufferReleasedEvent"); |
| 185 | 185 | ||
| 186 | // Should be similar to audio_output_device_switch_event | ||
| 187 | audio_input_device_switch_event = Kernel::WritableEvent::CreateEventPair( | ||
| 188 | kernel, Kernel::ResetType::Automatic, "IAudioDevice:AudioInputDeviceSwitchedEvent"); | ||
| 189 | |||
| 186 | // Should only be signalled when an audio output device has been changed, example: speaker | 190 | // Should only be signalled when an audio output device has been changed, example: speaker |
| 187 | // to headset | 191 | // to headset |
| 188 | audio_output_device_switch_event = Kernel::WritableEvent::CreateEventPair( | 192 | audio_output_device_switch_event = Kernel::WritableEvent::CreateEventPair( |
| @@ -279,6 +283,15 @@ private: | |||
| 279 | rb.Push<u32>(1); | 283 | rb.Push<u32>(1); |
| 280 | } | 284 | } |
| 281 | 285 | ||
| 286 | // Should be similar to QueryAudioDeviceOutputEvent | ||
| 287 | void QueryAudioDeviceInputEvent(Kernel::HLERequestContext& ctx) { | ||
| 288 | LOG_WARNING(Service_Audio, "(STUBBED) called"); | ||
| 289 | |||
| 290 | IPC::ResponseBuilder rb{ctx, 2, 1}; | ||
| 291 | rb.Push(RESULT_SUCCESS); | ||
| 292 | rb.PushCopyObjects(audio_input_device_switch_event.readable); | ||
| 293 | } | ||
| 294 | |||
| 282 | void QueryAudioDeviceOutputEvent(Kernel::HLERequestContext& ctx) { | 295 | void QueryAudioDeviceOutputEvent(Kernel::HLERequestContext& ctx) { |
| 283 | LOG_DEBUG(Service_Audio, "called"); | 296 | LOG_DEBUG(Service_Audio, "called"); |
| 284 | 297 | ||