aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/audio/audren_u.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-07-19 03:44:00 -0400
committerLioncash <mathew1800@gmail.com>2019-07-19 07:55:23 -0400
commitb9ebab71beaf9afc74788368846086a9c4648f4b (patch)
tree5a1ef62724e1cedab67cab1e3f61284745c3c131 /src/core/hle/service/audio/audren_u.h
parented0485c5993cca8c544ca5a641357034519730a5 (diff)
service/audren_u: Move revision testing code out of AudRenU
The revision querying facilities are used by more than just audren. e.g. audio devices can use this to test whether or not USB audio output is supported. This will be used within the following change.
Diffstat (limited to 'src/core/hle/service/audio/audren_u.h')
-rw-r--r--src/core/hle/service/audio/audren_u.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/core/hle/service/audio/audren_u.h b/src/core/hle/service/audio/audren_u.h
index 6e17489ce..0f3aad501 100644
--- a/src/core/hle/service/audio/audren_u.h
+++ b/src/core/hle/service/audio/audren_u.h
@@ -30,16 +30,18 @@ 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 {
+ 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