diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-01 15:50:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-01 15:50:14 +0100 |
commit | 12e74fe801b2b09b8d878cfb4e97658e140197b6 (patch) | |
tree | 65e7cfa76f813321da773a38533d5752d455af02 | |
parent | Merge pull request #2181 from lioncash/audren2 (diff) | |
parent | service/audio: Provide an implementation of ExecuteAudioRendererRendering (diff) | |
download | yuzu-12e74fe801b2b09b8d878cfb4e97658e140197b6.tar yuzu-12e74fe801b2b09b8d878cfb4e97658e140197b6.tar.gz yuzu-12e74fe801b2b09b8d878cfb4e97658e140197b6.tar.bz2 yuzu-12e74fe801b2b09b8d878cfb4e97658e140197b6.tar.lz yuzu-12e74fe801b2b09b8d878cfb4e97658e140197b6.tar.xz yuzu-12e74fe801b2b09b8d878cfb4e97658e140197b6.tar.zst yuzu-12e74fe801b2b09b8d878cfb4e97658e140197b6.zip |
-rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp index f68f588b6..ea8f9d0bb 100644 --- a/src/core/hle/service/audio/audren_u.cpp +++ b/src/core/hle/service/audio/audren_u.cpp @@ -37,7 +37,7 @@ public: {8, &IAudioRenderer::SetRenderingTimeLimit, "SetRenderingTimeLimit"}, {9, &IAudioRenderer::GetRenderingTimeLimit, "GetRenderingTimeLimit"}, {10, &IAudioRenderer::RequestUpdateImpl, "RequestUpdateAuto"}, - {11, nullptr, "ExecuteAudioRendererRendering"}, + {11, &IAudioRenderer::ExecuteAudioRendererRendering, "ExecuteAudioRendererRendering"}, }; // clang-format on RegisterHandlers(functions); @@ -138,6 +138,17 @@ private: rb.Push(rendering_time_limit_percent); } + void ExecuteAudioRendererRendering(Kernel::HLERequestContext& ctx) { + LOG_DEBUG(Service_Audio, "called"); + + // This service command currently only reports an unsupported operation + // error code, or aborts. Given that, we just always return an error + // code in this case. + + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(ResultCode{ErrorModule::Audio, 201}); + } + Kernel::EventPair system_event; std::unique_ptr<AudioCore::AudioRenderer> renderer; u32 rendering_time_limit_percent = 100; |