summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2018-09-23 14:32:01 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2018-09-23 14:32:01 +0200
commitc461188f516173302b1aa97bbe4ee358d776b8c8 (patch)
tree2699c6c0d34f56908e950a65d038af2824cc6b13 /src/core
parentMerge pull request #1378 from lioncash/thread (diff)
downloadyuzu-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 'src/core')
-rw-r--r--src/core/hle/service/audio/audren_u.cpp9
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);