diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-12 20:56:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-12 20:56:11 +0200 |
commit | 4cafc24a4e7cc0e8a35e721a1c0b72f2c929c162 (patch) | |
tree | aa2282c3d3c76f8eac9cf0930473d6e56e892f5a /src/core/hle | |
parent | Merge pull request #1028 from ogniK5377/aoa (diff) | |
parent | GetAudioDeviceServiceWithRevisionInfo (diff) | |
download | yuzu-4cafc24a4e7cc0e8a35e721a1c0b72f2c929c162.tar yuzu-4cafc24a4e7cc0e8a35e721a1c0b72f2c929c162.tar.gz yuzu-4cafc24a4e7cc0e8a35e721a1c0b72f2c929c162.tar.bz2 yuzu-4cafc24a4e7cc0e8a35e721a1c0b72f2c929c162.tar.lz yuzu-4cafc24a4e7cc0e8a35e721a1c0b72f2c929c162.tar.xz yuzu-4cafc24a4e7cc0e8a35e721a1c0b72f2c929c162.tar.zst yuzu-4cafc24a4e7cc0e8a35e721a1c0b72f2c929c162.zip |
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 13 | ||||
-rw-r--r-- | src/core/hle/service/audio/audren_u.h | 1 |
2 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 0b6034bb3..9e75eb3a6 100644 --- a/src/core/hle/service/audio/audren_u.cpp +++ b/src/core/hle/service/audio/audren_u.cpp @@ -190,7 +190,8 @@ AudRenU::AudRenU() : ServiceFramework("audren:u") { {1, &AudRenU::GetAudioRendererWorkBufferSize, "GetAudioRendererWorkBufferSize"}, {2, &AudRenU::GetAudioDevice, "GetAudioDevice"}, {3, nullptr, "OpenAudioRendererAuto"}, - {4, nullptr, "GetAudioDeviceServiceWithRevisionInfo"}, + {4, &AudRenU::GetAudioDeviceServiceWithRevisionInfo, + "GetAudioDeviceServiceWithRevisionInfo"}, }; RegisterHandlers(functions); } @@ -274,6 +275,16 @@ void AudRenU::GetAudioDevice(Kernel::HLERequestContext& ctx) { LOG_DEBUG(Service_Audio, "called"); } +void AudRenU::GetAudioDeviceServiceWithRevisionInfo(Kernel::HLERequestContext& ctx) { + IPC::ResponseBuilder rb{ctx, 2, 0, 1}; + + rb.Push(RESULT_SUCCESS); + rb.PushIpcInterface<Audio::IAudioDevice>(); + + LOG_WARNING(Service_Audio, "(STUBBED) called"); // TODO(ogniK): Figure out what is different + // based on the current revision +} + bool AudRenU::IsFeatureSupported(AudioFeatures feature, u32_le revision) const { u32_be version_num = (revision - Common::MakeMagic('R', 'E', 'V', '0')); // Byte swap switch (feature) { diff --git a/src/core/hle/service/audio/audren_u.h b/src/core/hle/service/audio/audren_u.h index 14907f8ae..8600ac6e4 100644 --- a/src/core/hle/service/audio/audren_u.h +++ b/src/core/hle/service/audio/audren_u.h @@ -22,6 +22,7 @@ private: void OpenAudioRenderer(Kernel::HLERequestContext& ctx); void GetAudioRendererWorkBufferSize(Kernel::HLERequestContext& ctx); void GetAudioDevice(Kernel::HLERequestContext& ctx); + void GetAudioDeviceServiceWithRevisionInfo(Kernel::HLERequestContext& ctx); enum class AudioFeatures : u32 { Splitter, |