summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-01-29 06:54:46 +0100
committerGitHub <noreply@github.com>2021-01-29 06:54:46 +0100
commitb786568c5ae056f2d55854959029e72e58d62990 (patch)
treeccc2f2069e0d53e72d3f717b7598c2ae99e17d09 /src/core
parentMerge pull request #5837 from german77/socketstub (diff)
parentaudout: FlushAudioOutBuffers (diff)
downloadyuzu-b786568c5ae056f2d55854959029e72e58d62990.tar
yuzu-b786568c5ae056f2d55854959029e72e58d62990.tar.gz
yuzu-b786568c5ae056f2d55854959029e72e58d62990.tar.bz2
yuzu-b786568c5ae056f2d55854959029e72e58d62990.tar.lz
yuzu-b786568c5ae056f2d55854959029e72e58d62990.tar.xz
yuzu-b786568c5ae056f2d55854959029e72e58d62990.tar.zst
yuzu-b786568c5ae056f2d55854959029e72e58d62990.zip
Diffstat (limited to 'src/core')
-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 02ca711fb..273a46265 100644
--- a/src/core/hle/service/audio/audout_u.cpp
+++ b/src/core/hle/service/audio/audout_u.cpp
@@ -58,7 +58,7 @@ public:
{8, &IAudioOut::GetReleasedAudioOutBufferImpl, "GetReleasedAudioOutBufferAuto"},
{9, &IAudioOut::GetAudioOutBufferCount, "GetAudioOutBufferCount"},
{10, nullptr, "GetAudioOutPlayedSampleCount"},
- {11, nullptr, "FlushAudioOutBuffers"},
+ {11, &IAudioOut::FlushAudioOutBuffers, "FlushAudioOutBuffers"},
{12, &IAudioOut::SetAudioOutVolume, "SetAudioOutVolume"},
{13, &IAudioOut::GetAudioOutVolume, "GetAudioOutVolume"},
};
@@ -185,6 +185,14 @@ private:
rb.Push(static_cast<u32>(stream->GetQueueSize()));
}
+ void FlushAudioOutBuffers(Kernel::HLERequestContext& ctx) {
+ LOG_DEBUG(Service_Audio, "called");
+
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(RESULT_SUCCESS);
+ rb.Push(stream->Flush());
+ }
+
void SetAudioOutVolume(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const float volume = rp.Pop<float>();