Пример #1
0
 public CUEToolsUDC(AudioEncoderClassAttribute enc, Type enctype)
 {
     name = enc.EncoderName;
     extension = enc.Extension;
     lossless = enc.Lossless;
     priority = enc.Priority;
     path = null;
     parameters = null;
     type = enctype;
     settingsSerializer = new XmlSerializer(enc.Settings);
     settings = Activator.CreateInstance(enc.Settings) as AudioEncoderSettings;
     if (settings == null)
         throw new InvalidOperationException("invalid codec");
 }
Пример #2
0
 public CUEToolsUDC(AudioEncoderClassAttribute enc, Type enctype)
 {
     name               = enc.EncoderName;
     extension          = enc.Extension;
     lossless           = enc.Lossless;
     priority           = enc.Priority;
     path               = null;
     parameters         = null;
     type               = enctype;
     settingsSerializer = new XmlSerializer(enc.Settings);
     settings           = Activator.CreateInstance(enc.Settings) as AudioEncoderSettings;
     if (settings == null)
     {
         throw new InvalidOperationException("invalid codec");
     }
 }
Пример #3
0
 public CUEToolsUDC(
     string _name,
     string _extension,
     bool _lossless,
     string _supported_modes,
     string _default_mode,
     string _path,
     string _parameters
     )
 {
     name = _name;
     extension = _extension;
     lossless = _lossless;
     priority = 0;
     path = null;
     parameters = null;
     type = typeof(UserDefinedWriter);
     settingsSerializer = new XmlSerializer(typeof(UserDefinedEncoderSettings));
     settings = new UserDefinedEncoderSettings() { SupportedModes = _supported_modes, EncoderMode = _default_mode, Path = _path, Parameters = _parameters };
 }
Пример #4
0
 public CUEToolsUDC(
     string _name,
     string _extension,
     bool _lossless,
     string _supported_modes,
     string _default_mode,
     string _path,
     string _parameters
     )
 {
     name               = _name;
     extension          = _extension;
     lossless           = _lossless;
     priority           = 0;
     path               = null;
     parameters         = null;
     type               = typeof(UserDefinedWriter);
     settingsSerializer = new XmlSerializer(typeof(UserDefinedEncoderSettings));
     settings           = new UserDefinedEncoderSettings()
     {
         SupportedModes = _supported_modes, EncoderMode = _default_mode, Path = _path, Parameters = _parameters
     };
 }
Пример #5
0
 public DummyWriter(string path, AudioEncoderSettings settings)
 {
     m_settings = settings;
 }
Пример #6
0
 public DummyWriter(string path, AudioEncoderSettings settings)
 {
     m_settings = settings;
 }