mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
Simplify code for encoder settings
This commit is contained in:
27
CUETools.Codecs/DefaultValueForMode.cs
Normal file
27
CUETools.Codecs/DefaultValueForMode.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CUETools.Codecs
|
||||
{
|
||||
/// <summary>
|
||||
/// Default property value for each encoder mode attribute
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
|
||||
public class DefaultValueForModeAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Resource manager to use;
|
||||
/// </summary>
|
||||
public int[] m_values;
|
||||
|
||||
/// <summary>
|
||||
/// Construct the description attribute
|
||||
/// </summary>
|
||||
/// <param name="text"></param>
|
||||
public DefaultValueForModeAttribute(params int[] values)
|
||||
{
|
||||
this.m_values = values;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user