コード例 #1
0
 public override void InitializeComponent(ICore core)
 {
     this.Configuration = core.Components.Configuration;
     this.Configuration.GetElement <SelectionConfigurationElement>(
         BassOutputConfiguration.SECTION,
         BassResamplerStreamComponentConfiguration.QUALITY_ELEMENT
         ).ConnectValue(value => this.Quality = BassResamplerStreamComponentConfiguration.GetQuality(value));
     this.Configuration.GetElement <SelectionConfigurationElement>(
         BassOutputConfiguration.SECTION,
         BassResamplerStreamComponentConfiguration.PHASE_ELEMENT
         ).ConnectValue(value => this.Phase = BassResamplerStreamComponentConfiguration.GetPhase(value));
     this.Configuration.GetElement <BooleanConfigurationElement>(
         BassOutputConfiguration.SECTION,
         BassResamplerStreamComponentConfiguration.STEEP_FILTER_ELEMENT
         ).ConnectValue(value => this.SteepFilter = value);
     this.Configuration.GetElement <BooleanConfigurationElement>(
         BassOutputConfiguration.SECTION,
         BassResamplerStreamComponentConfiguration.ALLOW_ALIASING_ELEMENT
         ).ConnectValue(value => this.AllowAliasing = value);
     this.Configuration.GetElement <IntegerConfigurationElement>(
         BassOutputConfiguration.SECTION,
         BassResamplerStreamComponentConfiguration.BUFFER_LENGTH_ELEMENT
         ).ConnectValue(value => this.BufferLength = value);
     base.InitializeComponent(core);
 }
コード例 #2
0
 public IEnumerable <ConfigurationSection> GetConfigurationSections()
 {
     return(BassResamplerStreamComponentConfiguration.GetConfigurationSections());
 }