summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid <25727384+ogniK5377@users.noreply.github.com>2019-09-05 01:51:50 +0200
committerGitHub <noreply@github.com>2019-09-05 01:51:50 +0200
commitd8e59a28ea8e566ce800f84aabd399bc511b7d36 (patch)
tree1b086e5260b2f4af52d420969a24b2383e017e1a
parentMerge pull request #2836 from Morph1984/hid_vibration (diff)
parentAdd Kernel::EventPair audio_input_device_switch_event; (diff)
downloadyuzu-d8e59a28ea8e566ce800f84aabd399bc511b7d36.tar
yuzu-d8e59a28ea8e566ce800f84aabd399bc511b7d36.tar.gz
yuzu-d8e59a28ea8e566ce800f84aabd399bc511b7d36.tar.bz2
yuzu-d8e59a28ea8e566ce800f84aabd399bc511b7d36.tar.lz
yuzu-d8e59a28ea8e566ce800f84aabd399bc511b7d36.tar.xz
yuzu-d8e59a28ea8e566ce800f84aabd399bc511b7d36.tar.zst
yuzu-d8e59a28ea8e566ce800f84aabd399bc511b7d36.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/audio/audren_u.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp
index b4bd9adf0..f162249ed 100644
--- a/src/core/hle/service/audio/audren_u.cpp
+++ b/src/core/hle/service/audio/audren_u.cpp
@@ -173,7 +173,7 @@ public:
{7, &IAudioDevice::SetAudioDeviceOutputVolume, "SetAudioDeviceOutputVolumeAuto"},
{8, &IAudioDevice::GetAudioDeviceOutputVolume, "GetAudioDeviceOutputVolumeAuto"},
{10, &IAudioDevice::GetActiveAudioDeviceName, "GetActiveAudioDeviceNameAuto"},
- {11, nullptr, "QueryAudioDeviceInputEvent"},
+ {11, &IAudioDevice::QueryAudioDeviceInputEvent, "QueryAudioDeviceInputEvent"},
{12, &IAudioDevice::QueryAudioDeviceOutputEvent, "QueryAudioDeviceOutputEvent"},
{13, nullptr, "GetAudioSystemMasterVolumeSetting"},
};
@@ -183,6 +183,10 @@ public:
buffer_event = Kernel::WritableEvent::CreateEventPair(kernel, Kernel::ResetType::Automatic,
"IAudioOutBufferReleasedEvent");
+ // Should be similar to audio_output_device_switch_event
+ audio_input_device_switch_event = Kernel::WritableEvent::CreateEventPair(
+ kernel, Kernel::ResetType::Automatic, "IAudioDevice:AudioInputDeviceSwitchedEvent");
+
// Should only be signalled when an audio output device has been changed, example: speaker
// to headset
audio_output_device_switch_event = Kernel::WritableEvent::CreateEventPair(
@@ -292,6 +296,15 @@ private:
rb.Push<u32>(1);
}
+ // Should be similar to QueryAudioDeviceOutputEvent
+ void QueryAudioDeviceInputEvent(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service_Audio, "(STUBBED) called");
+
+ IPC::ResponseBuilder rb{ctx, 2, 1};
+ rb.Push(RESULT_SUCCESS);
+ rb.PushCopyObjects(audio_input_device_switch_event.readable);
+ }
+
void QueryAudioDeviceOutputEvent(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
@@ -302,6 +315,7 @@ private:
u32_le revision = 0;
Kernel::EventPair buffer_event;
+ Kernel::EventPair audio_input_device_switch_event;
Kernel::EventPair audio_output_device_switch_event;
}; // namespace Audio