summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-06-23 20:31:12 +0200
committerGitHub <noreply@github.com>2021-06-23 20:31:12 +0200
commit809e5fd52317f0a925ca463eca85a0b67d744f9e (patch)
tree2be4647d9d8ca7b43643e2996a831b2c914c519b /src/core/hle
parentMerge pull request #6518 from lioncash/func (diff)
parentImplement audout GetAudioOutPlayedSampleCount (diff)
downloadyuzu-809e5fd52317f0a925ca463eca85a0b67d744f9e.tar
yuzu-809e5fd52317f0a925ca463eca85a0b67d744f9e.tar.gz
yuzu-809e5fd52317f0a925ca463eca85a0b67d744f9e.tar.bz2
yuzu-809e5fd52317f0a925ca463eca85a0b67d744f9e.tar.lz
yuzu-809e5fd52317f0a925ca463eca85a0b67d744f9e.tar.xz
yuzu-809e5fd52317f0a925ca463eca85a0b67d744f9e.tar.zst
yuzu-809e5fd52317f0a925ca463eca85a0b67d744f9e.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/audio/audout_u.cpp10
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");