Ejemplo n.º 1
0
 public override void InitializeComponent(ICore core)
 {
     this.Output        = core.Components.Output as IBassOutput;
     this.Output.Init  += this.OnInit;
     this.Output.Free  += this.OnFree;
     this.Configuration = core.Components.Configuration;
     this.Configuration.GetElement <SelectionConfigurationElement>(
         BassOutputConfiguration.SECTION,
         BassOutputConfiguration.MODE_ELEMENT
         ).ConnectValue(value => this.Enabled = string.Equals(value.Id, BassDirectSoundStreamOutputConfiguration.MODE_DS_OPTION, StringComparison.OrdinalIgnoreCase));
     this.Configuration.GetElement <SelectionConfigurationElement>(
         BassOutputConfiguration.SECTION,
         BassDirectSoundStreamOutputConfiguration.ELEMENT_DS_DEVICE
         ).ConnectValue(value => this.DirectSoundDevice = BassDirectSoundStreamOutputConfiguration.GetDsDevice(value));
     this.BassStreamPipelineFactory = ComponentRegistry.Instance.GetComponent <IBassStreamPipelineFactory>();
     if (this.BassStreamPipelineFactory != null)
     {
         this.BassStreamPipelineFactory.QueryingPipeline += this.OnQueryingPipeline;
         this.BassStreamPipelineFactory.CreatingPipeline += this.OnCreatingPipeline;
     }
     base.InitializeComponent(core);
 }
Ejemplo n.º 2
0
 public IEnumerable <ConfigurationSection> GetConfigurationSections()
 {
     return(BassDirectSoundStreamOutputConfiguration.GetConfigurationSections());
 }