diff options
author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2021-06-21 19:17:12 +0200 |
---|---|---|
committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2021-06-22 05:39:17 +0200 |
commit | ba3af04da1ba020bdbb7285c8da73f75fcba68cc (patch) | |
tree | 60e516f0db83ee9d2e6d2b4cf05671b721bce043 /src/core | |
parent | Merge pull request #6486 from CaptV0rt3x/httplib (diff) | |
download | yuzu-ba3af04da1ba020bdbb7285c8da73f75fcba68cc.tar yuzu-ba3af04da1ba020bdbb7285c8da73f75fcba68cc.tar.gz yuzu-ba3af04da1ba020bdbb7285c8da73f75fcba68cc.tar.bz2 yuzu-ba3af04da1ba020bdbb7285c8da73f75fcba68cc.tar.lz yuzu-ba3af04da1ba020bdbb7285c8da73f75fcba68cc.tar.xz yuzu-ba3af04da1ba020bdbb7285c8da73f75fcba68cc.tar.zst yuzu-ba3af04da1ba020bdbb7285c8da73f75fcba68cc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/audio/audout_u.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp index 804c6b10c..92d4510b1 100644 --- a/src/core/hle/service/audio/audout_u.cpp +++ b/src/core/hle/service/audio/audout_u.cpp @@ -58,7 +58,7 @@ public: {7, &IAudioOut::AppendAudioOutBufferImpl, "AppendAudioOutBufferAuto"}, {8, &IAudioOut::GetReleasedAudioOutBufferImpl, "GetReleasedAudioOutBufferAuto"}, {9, &IAudioOut::GetAudioOutBufferCount, "GetAudioOutBufferCount"}, - {10, nullptr, "GetAudioOutPlayedSampleCount"}, + {10, &IAudioOut::GetAudioOutPlayedSampleCount, "GetAudioOutPlayedSampleCount"}, {11, &IAudioOut::FlushAudioOutBuffers, "FlushAudioOutBuffers"}, {12, &IAudioOut::SetAudioOutVolume, "SetAudioOutVolume"}, {13, &IAudioOut::GetAudioOutVolume, "GetAudioOutVolume"}, @@ -186,6 +186,14 @@ private: rb.Push(static_cast<u32>(stream->GetQueueSize())); } + void GetAudioOutPlayedSampleCount(Kernel::HLERequestContext& ctx) { + LOG_DEBUG(Service_Audio, "called"); + + IPC::ResponseBuilder rb{ctx, 4}; + rb.Push(ResultSuccess); + rb.Push(stream->GetPlayedSampleCount()); + } + void FlushAudioOutBuffers(Kernel::HLERequestContext& ctx) { LOG_DEBUG(Service_Audio, "called"); |