diff options
| -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 | ||