aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Audio/AudioRendererManager/AudioRendererCommon.cs
blob: c884b46507e5d3aaf26f7d6e973e9084f3f42cd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
namespace Ryujinx.HLE.HOS.Services.Audio.AudioRendererManager
{
    static class AudioRendererCommon
    {
        public static bool CheckValidRevision(AudioRendererParameter parameters)      => GetRevisionVersion(parameters.Revision) <= AudioRendererConsts.Revision;
        public static bool CheckFeatureSupported(int revision, int supportedRevision) => revision >= supportedRevision;
        public static int  GetRevisionVersion(int revision)                           => (revision - AudioRendererConsts.Rev0Magic) >> 24;
    }
}