From 44eb8402322a47a52f0401f9ef7473bea719e2bf Mon Sep 17 00:00:00 2001 From: st4rk Date: Wed, 24 Jan 2018 19:17:54 -0800 Subject: audout:u OpenAudioOut and IAudioOut (#138) * Updated the audout:u and IAudioOut, now it might work with RetroArch without trigger an assert, however it's not the ideal implementation * Updated the audout:u and IAudioOut, now it might work with RetroArch without trigger an assert, however it's not the ideal implementation * audout:u OpenAudioOut implementation and IAudioOut cmd 1,2,3,4,5 implementation * using an enum for audio_out_state as well as changing its initialize to member initializer list * Minor fixes, added Service_Audio for LOG_*, changed PcmFormat enum to EnumClass * Minor fixes, added Service_Audio for LOG_*, changed PcmFormat enum to EnumClass * added missing Audio loggin subclass, minor fixes, clang comment breakline * Solving backend logging conflict * minor fix * Fixed duplicated Service NVDRV in backend.cpp, my bad --- src/core/hle/service/audio/audout_u.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/core/hle/service/audio/audout_u.h') diff --git a/src/core/hle/service/audio/audout_u.h b/src/core/hle/service/audio/audout_u.h index 69626cc58..7fbce2225 100644 --- a/src/core/hle/service/audio/audout_u.h +++ b/src/core/hle/service/audio/audout_u.h @@ -13,14 +13,28 @@ class HLERequestContext; namespace Service { namespace Audio { +class IAudioOut; + class AudOutU final : public ServiceFramework { public: AudOutU(); ~AudOutU() = default; private: + std::shared_ptr audio_out_interface; + void ListAudioOuts(Kernel::HLERequestContext& ctx); void OpenAudioOut(Kernel::HLERequestContext& ctx); + + enum class PcmFormat : u32 { + Invalid = 0, + Int8 = 1, + Int16 = 2, + Int24 = 3, + Int32 = 4, + PcmFloat = 5, + Adpcm = 6, + }; }; } // namespace Audio -- cgit v1.2.3