summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/audio
diff options
context:
space:
mode:
authorChloe Marcec <dmarcecguzman@gmail.com>2021-01-24 09:13:34 +0100
committerChloe Marcec <dmarcecguzman@gmail.com>2021-01-24 09:13:34 +0100
commitb2b95e96c159afe3226fe6a001ff780a38813fe4 (patch)
tree701c946a772d58bca5b1fd153c324a98d622ec04 /src/core/hle/service/audio
parentMerge pull request #5806 from bunnei/am-stub (diff)
downloadyuzu-b2b95e96c159afe3226fe6a001ff780a38813fe4.tar
yuzu-b2b95e96c159afe3226fe6a001ff780a38813fe4.tar.gz
yuzu-b2b95e96c159afe3226fe6a001ff780a38813fe4.tar.bz2
yuzu-b2b95e96c159afe3226fe6a001ff780a38813fe4.tar.lz
yuzu-b2b95e96c159afe3226fe6a001ff780a38813fe4.tar.xz
yuzu-b2b95e96c159afe3226fe6a001ff780a38813fe4.tar.zst
yuzu-b2b95e96c159afe3226fe6a001ff780a38813fe4.zip
Diffstat (limited to 'src/core/hle/service/audio')
-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>();