diff options
| author | 2018-04-02 23:31:29 -0400 | |
|---|---|---|
| committer | 2018-04-02 23:51:00 -0400 | |
| commit | 3d4dfefaecd247fb1969d5e403ac8c97e490d7d9 (patch) | |
| tree | dbd887e76e4cb326d34b47cfff39e9d74cb4c4b9 /src | |
| parent | nifm: GetResult does not return a data field. (diff) | |
| download | yuzu-3d4dfefaecd247fb1969d5e403ac8c97e490d7d9.tar.gz yuzu-3d4dfefaecd247fb1969d5e403ac8c97e490d7d9.tar.xz yuzu-3d4dfefaecd247fb1969d5e403ac8c97e490d7d9.zip | |
audout_u: Implement GetAudioOutState.
Diffstat (limited to 'src')
| -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> { | |||
| 25 | public: | 25 | public: |
| 26 | IAudioOut() : ServiceFramework("IAudioOut"), audio_out_state(AudioState::Stopped) { | 26 | IAudioOut() : ServiceFramework("IAudioOut"), audio_out_state(AudioState::Stopped) { |
| 27 | static const FunctionInfo functions[] = { | 27 | static const FunctionInfo functions[] = { |
| 28 | {0x0, nullptr, "GetAudioOutState"}, | 28 | {0x0, &IAudioOut::GetAudioOutState, "GetAudioOutState"}, |
| 29 | {0x1, &IAudioOut::StartAudioOut, "StartAudioOut"}, | 29 | {0x1, &IAudioOut::StartAudioOut, "StartAudioOut"}, |
| 30 | {0x2, &IAudioOut::StopAudioOut, "StopAudioOut"}, | 30 | {0x2, &IAudioOut::StopAudioOut, "StopAudioOut"}, |
| 31 | {0x3, &IAudioOut::AppendAudioOutBuffer_1, "AppendAudioOutBuffer_1"}, | 31 | {0x3, &IAudioOut::AppendAudioOutBuffer_1, "AppendAudioOutBuffer_1"}, |
| @@ -57,6 +57,13 @@ public: | |||
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | private: | 59 | private: |
| 60 | void GetAudioOutState(Kernel::HLERequestContext& ctx) { | ||
| 61 | LOG_DEBUG(Service_Audio, "called"); | ||
| 62 | IPC::ResponseBuilder rb{ctx, 3}; | ||
| 63 | rb.Push(RESULT_SUCCESS); | ||
| 64 | rb.Push(static_cast<u32>(audio_out_state)); | ||
| 65 | } | ||
| 66 | |||
| 60 | void StartAudioOut(Kernel::HLERequestContext& ctx) { | 67 | void StartAudioOut(Kernel::HLERequestContext& ctx) { |
| 61 | LOG_WARNING(Service_Audio, "(STUBBED) called"); | 68 | LOG_WARNING(Service_Audio, "(STUBBED) called"); |
| 62 | 69 | ||