namespace Ryujinx.Audio.Renderer.Common
{
///
/// Helper for manipulating node ids.
///
public static class NodeIdHelper
{
///
/// Get the type of a node from a given node id.
///
/// Id of the node.
/// The type of the node.
public static NodeIdType GetType(int nodeId)
{
return (NodeIdType)(nodeId >> 28);
}
///
/// Get the base of a node from a given node id.
///
/// Id of the node.
/// The base of the node.
public static int GetBase(int nodeId)
{
return (nodeId >> 16) & 0xFFF;
}
}
}