diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2018-09-23 14:32:01 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2018-09-23 14:32:01 +0200 |
commit | c461188f516173302b1aa97bbe4ee358d776b8c8 (patch) | |
tree | 2699c6c0d34f56908e950a65d038af2824cc6b13 /src/core/hle/service/audio | |
parent | Merge pull request #1378 from lioncash/thread (diff) | |
download | yuzu-c461188f516173302b1aa97bbe4ee358d776b8c8.tar yuzu-c461188f516173302b1aa97bbe4ee358d776b8c8.tar.gz yuzu-c461188f516173302b1aa97bbe4ee358d776b8c8.tar.bz2 yuzu-c461188f516173302b1aa97bbe4ee358d776b8c8.tar.lz yuzu-c461188f516173302b1aa97bbe4ee358d776b8c8.tar.xz yuzu-c461188f516173302b1aa97bbe4ee358d776b8c8.tar.zst yuzu-c461188f516173302b1aa97bbe4ee358d776b8c8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp index 06ac6372d..80ed4b152 100644 --- a/src/core/hle/service/audio/audren_u.cpp +++ b/src/core/hle/service/audio/audren_u.cpp @@ -25,7 +25,7 @@ public: {0, &IAudioRenderer::GetAudioRendererSampleRate, "GetAudioRendererSampleRate"}, {1, &IAudioRenderer::GetAudioRendererSampleCount, "GetAudioRendererSampleCount"}, {2, &IAudioRenderer::GetAudioRendererMixBufferCount, "GetAudioRendererMixBufferCount"}, - {3, nullptr, "GetAudioRendererState"}, + {3, &IAudioRenderer::GetAudioRendererState, "GetAudioRendererState"}, {4, &IAudioRenderer::RequestUpdateAudioRenderer, "RequestUpdateAudioRenderer"}, {5, &IAudioRenderer::StartAudioRenderer, "StartAudioRenderer"}, {6, &IAudioRenderer::StopAudioRenderer, "StopAudioRenderer"}, @@ -62,6 +62,13 @@ private: LOG_DEBUG(Service_Audio, "called"); } + void GetAudioRendererState(Kernel::HLERequestContext& ctx) { + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(RESULT_SUCCESS); + rb.Push<u32>(renderer->GetState()); + LOG_DEBUG(Service_Audio, "called"); + } + void GetAudioRendererMixBufferCount(Kernel::HLERequestContext& ctx) { IPC::ResponseBuilder rb{ctx, 3}; rb.Push(RESULT_SUCCESS); |