diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-03 05:31:29 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-04-03 05:51:00 +0200 |
commit | 3d4dfefaecd247fb1969d5e403ac8c97e490d7d9 (patch) | |
tree | dbd887e76e4cb326d34b47cfff39e9d74cb4c4b9 | |
parent | nifm: GetResult does not return a data field. (diff) | |
download | yuzu-3d4dfefaecd247fb1969d5e403ac8c97e490d7d9.tar yuzu-3d4dfefaecd247fb1969d5e403ac8c97e490d7d9.tar.gz yuzu-3d4dfefaecd247fb1969d5e403ac8c97e490d7d9.tar.bz2 yuzu-3d4dfefaecd247fb1969d5e403ac8c97e490d7d9.tar.lz yuzu-3d4dfefaecd247fb1969d5e403ac8c97e490d7d9.tar.xz yuzu-3d4dfefaecd247fb1969d5e403ac8c97e490d7d9.tar.zst yuzu-3d4dfefaecd247fb1969d5e403ac8c97e490d7d9.zip |
-rw-r--r-- | src/core/hle/service/audio/audout_u.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp index e873d768f..8e935cb7f 100644 --- a/src/core/hle/service/audio/audout_u.cpp +++ b/src/core/hle/service/audio/audout_u.cpp @@ -25,7 +25,7 @@ class IAudioOut final : public ServiceFramework<IAudioOut> { public: IAudioOut() : ServiceFramework("IAudioOut"), audio_out_state(AudioState::Stopped) { static const FunctionInfo functions[] = { - {0x0, nullptr, "GetAudioOutState"}, + {0x0, &IAudioOut::GetAudioOutState, "GetAudioOutState"}, {0x1, &IAudioOut::StartAudioOut, "StartAudioOut"}, {0x2, &IAudioOut::StopAudioOut, "StopAudioOut"}, {0x3, &IAudioOut::AppendAudioOutBuffer_1, "AppendAudioOutBuffer_1"}, @@ -57,6 +57,13 @@ public: } private: + void GetAudioOutState(Kernel::HLERequestContext& ctx) { + LOG_DEBUG(Service_Audio, "called"); + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(RESULT_SUCCESS); + rb.Push(static_cast<u32>(audio_out_state)); + } + void StartAudioOut(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_Audio, "(STUBBED) called"); |