mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CUETools.Flake: better use of new window functions
This commit is contained in:
@@ -81,11 +81,23 @@ namespace CUETools.Codecs
|
||||
if (attribute is DefaultValueForModeAttribute)
|
||||
{
|
||||
var defaultValueForMode = attribute as DefaultValueForModeAttribute;
|
||||
res &= (int)property.GetValue(this) == defaultValueForMode.m_values[index];
|
||||
res &= property.GetValue(this).Equals(defaultValueForMode.m_values[index]);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
public int GuessEncoderMode()
|
||||
{
|
||||
string defaultMode;
|
||||
string[] modes = this.GetSupportedModes(out defaultMode).Split(' ');
|
||||
if (modes == null || modes.Length < 1)
|
||||
return -1;
|
||||
for (int i = 0; i < modes.Length; i++)
|
||||
if (HasDefaultValuesForMode(i))
|
||||
return i;
|
||||
return -1;
|
||||
}
|
||||
|
||||
[Browsable(false)]
|
||||
[XmlIgnore]
|
||||
public AudioPCMConfig PCM
|
||||
|
||||
Reference in New Issue
Block a user