diff options
author | bunnei <bunneidev@gmail.com> | 2019-08-18 15:08:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-18 15:08:25 +0200 |
commit | ef584f1a3a1dc8c10b6fb624265ae81fc1078c3a (patch) | |
tree | 41e9fa35694d70a91a9f0cf04f4c8533271e52cc /src/core/hle/service/audio/audren_u.h | |
parent | Merge pull request #2778 from ReinUsesLisp/nop (diff) | |
parent | service/audren_u: Handle audio USB output revision queries in ListAudioDeviceName() (diff) | |
download | yuzu-ef584f1a3a1dc8c10b6fb624265ae81fc1078c3a.tar yuzu-ef584f1a3a1dc8c10b6fb624265ae81fc1078c3a.tar.gz yuzu-ef584f1a3a1dc8c10b6fb624265ae81fc1078c3a.tar.bz2 yuzu-ef584f1a3a1dc8c10b6fb624265ae81fc1078c3a.tar.lz yuzu-ef584f1a3a1dc8c10b6fb624265ae81fc1078c3a.tar.xz yuzu-ef584f1a3a1dc8c10b6fb624265ae81fc1078c3a.tar.zst yuzu-ef584f1a3a1dc8c10b6fb624265ae81fc1078c3a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/audio/audren_u.h | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/src/core/hle/service/audio/audren_u.h b/src/core/hle/service/audio/audren_u.h index 49f2733cf..4e0ccc792 100644 --- a/src/core/hle/service/audio/audren_u.h +++ b/src/core/hle/service/audio/audren_u.h @@ -6,6 +6,10 @@ #include "core/hle/service/service.h" +namespace Core { +class System; +} + namespace Kernel { class HLERequestContext; } @@ -14,7 +18,7 @@ namespace Service::Audio { class AudRenU final : public ServiceFramework<AudRenU> { public: - explicit AudRenU(); + explicit AudRenU(Core::System& system_); ~AudRenU() override; private: @@ -26,14 +30,19 @@ private: void OpenAudioRendererImpl(Kernel::HLERequestContext& ctx); - enum class AudioFeatures : u32 { - Splitter, - PerformanceMetricsVersion2, - VariadicCommandBuffer, - }; - - bool IsFeatureSupported(AudioFeatures feature, u32_le revision) const; std::size_t audren_instance_count = 0; + Core::System& system; }; +// Describes a particular audio feature that may be supported in a particular revision. +enum class AudioFeatures : u32 { + AudioUSBDeviceOutput, + Splitter, + PerformanceMetricsVersion2, + VariadicCommandBuffer, +}; + +// Tests if a particular audio feature is supported with a given audio revision. +bool IsFeatureSupported(AudioFeatures feature, u32_le revision); + } // namespace Service::Audio |