diff options
author | bunnei <bunneidev@gmail.com> | 2018-01-22 23:09:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-22 23:09:09 +0100 |
commit | de2e5a0855c11f8ef284708d2b55fa156594d1c4 (patch) | |
tree | f2ec22879261414c3c2e50001ea944978999d272 /src/core/hle/service/audio | |
parent | Merge pull request #132 from Subv/nvflinger (diff) | |
parent | Stub OpenAudioOut and fix a issue with HID IAppletResource being created more than once (diff) | |
download | yuzu-de2e5a0855c11f8ef284708d2b55fa156594d1c4.tar yuzu-de2e5a0855c11f8ef284708d2b55fa156594d1c4.tar.gz yuzu-de2e5a0855c11f8ef284708d2b55fa156594d1c4.tar.bz2 yuzu-de2e5a0855c11f8ef284708d2b55fa156594d1c4.tar.lz yuzu-de2e5a0855c11f8ef284708d2b55fa156594d1c4.tar.xz yuzu-de2e5a0855c11f8ef284708d2b55fa156594d1c4.tar.zst yuzu-de2e5a0855c11f8ef284708d2b55fa156594d1c4.zip |
Diffstat (limited to 'src/core/hle/service/audio')
-rw-r--r-- | src/core/hle/service/audio/audout_u.cpp | 15 | ||||
-rw-r--r-- | src/core/hle/service/audio/audout_u.h | 1 |
2 files changed, 15 insertions, 1 deletions
diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp index 8ecfef413..8a436bf97 100644 --- a/src/core/hle/service/audio/audout_u.cpp +++ b/src/core/hle/service/audio/audout_u.cpp @@ -49,9 +49,22 @@ void AudOutU::ListAudioOuts(Kernel::HLERequestContext& ctx) { rb.Push<u32>(1); } +void AudOutU::OpenAudioOut(Kernel::HLERequestContext& ctx) { + LOG_WARNING(Service, "(STUBBED) called"); + + IPC::RequestBuilder rb{ctx, 6}; + + rb.Push(RESULT_SUCCESS); + rb.Push<u32>(48000); // Sample Rate + rb.Push<u32>(2); // Channels + rb.Push<u32>(2); // PCM Format (INT16) + rb.Push<u32>(0); // Unknown + rb.PushIpcInterface<Audio::IAudioOut>(); +} + AudOutU::AudOutU() : ServiceFramework("audout:u") { static const FunctionInfo functions[] = {{0x00000000, &AudOutU::ListAudioOuts, "ListAudioOuts"}, - {0x00000001, nullptr, "OpenAudioOut"}, + {0x00000001, &AudOutU::OpenAudioOut, "OpenAudioOut"}, {0x00000002, nullptr, "Unknown2"}, {0x00000003, nullptr, "Unknown3"}}; RegisterHandlers(functions); diff --git a/src/core/hle/service/audio/audout_u.h b/src/core/hle/service/audio/audout_u.h index 17529245b..69626cc58 100644 --- a/src/core/hle/service/audio/audout_u.h +++ b/src/core/hle/service/audio/audout_u.h @@ -20,6 +20,7 @@ public: private: void ListAudioOuts(Kernel::HLERequestContext& ctx); + void OpenAudioOut(Kernel::HLERequestContext& ctx); }; } // namespace Audio |