Audio Core: Add support tags for compressor stats and volume reset

Added two new audio feature support tags with their corresponding revision
numbers:
- AudioCompressorStatistics (rev 16): For tracking compressor statistics
- AudioVolumeResetSupport (rev 17): For volume reset functionality

These features align with the documented Nintendo Switch audio service
capabilities and maintain compatibility with the existing feature support
system.
This commit is contained in:
Zephyron 2025-01-03 13:34:14 +10:00
parent eb2a666a69
commit b685d5701d
No known key found for this signature in database
GPG key ID: 8DA271B6A74353F1

View file

@ -67,6 +67,8 @@ enum class SupportTags {
AudioSystemRecordVolume, AudioSystemRecordVolume,
AudioSystemAutoMute, AudioSystemAutoMute,
AudioSystemHearingProtection, AudioSystemHearingProtection,
AudioCompressorStatistics,
AudioVolumeResetSupport,
Size Size
}; };
@ -131,6 +133,8 @@ constexpr bool CheckFeatureSupported(SupportTags tag, u32 user_revision) {
{SupportTags::AudioSystemRecordVolume, 4}, {SupportTags::AudioSystemRecordVolume, 4},
{SupportTags::AudioSystemAutoMute, 13}, {SupportTags::AudioSystemAutoMute, 13},
{SupportTags::AudioSystemHearingProtection, 14}, {SupportTags::AudioSystemHearingProtection, 14},
{SupportTags::AudioCompressorStatistics, 16},
{SupportTags::AudioVolumeResetSupport, 17},
}}; }};
const auto& feature = const auto& feature =