//private Thread _th;
 public void Init(IExtensionAccess contract)
 {
     _access = contract;
     _myPipe = new PipeServer { PlaybackManager = _access.PlaybackManagerInstance };
     //_th = new Thread(() => _myPipe.Run());
     //_th.Start();
     _access.IconManagerInstance.Add("mci:btnIcon", new FileIcon(PathStringUtils.GetExePath() + "mc.png", true));
 }
 public void Init(IExtensionAccess contract)
 {
     Access = contract;
     Np = new NAudioPlayer();
     Np.Init();
     Np.EqualizerBands.Add(new TempEqBand { Bandwidth = 1f, Frequency = 31, Gain = 0 });
     Np.EqualizerBands.Add(new TempEqBand { Bandwidth = 1f, Frequency = 62, Gain = 0 });
     Np.EqualizerBands.Add(new TempEqBand { Bandwidth = 1f, Frequency = 125, Gain = 0 });
     Np.EqualizerBands.Add(new TempEqBand { Bandwidth = 1f, Frequency = 250, Gain = 0 });
     Np.EqualizerBands.Add(new TempEqBand { Bandwidth = 1f, Frequency = 500, Gain = 0 });
     Np.EqualizerBands.Add(new TempEqBand { Bandwidth = 1f, Frequency = 1000, Gain = 0 });
     Np.EqualizerBands.Add(new TempEqBand { Bandwidth = 1f, Frequency = 2000, Gain = 0 });
     Np.EqualizerBands.Add(new TempEqBand { Bandwidth = 1f, Frequency = 4000, Gain = 0 });
     Np.EqualizerBands.Add(new TempEqBand { Bandwidth = 1f, Frequency = 8000, Gain = 0 });
     Np.EqualizerBands.Add(new TempEqBand { Bandwidth = 1f, Frequency = 16000, Gain = 0 });
     Access.PlaybackManagerInstance.RegisterAudioPlayer(from ec in Np.GetCodecInfo().Values from e in ec select e, Np);
 }
예제 #3
0
 public void Init(IExtensionAccess contract)
 {
     Access = contract;
     Np     = new NAudioPlayer();
     Np.Init();
     Np.EqualizerBands.Add(new TempEqBand {
         Bandwidth = 1f, Frequency = 31, Gain = 0
     });
     Np.EqualizerBands.Add(new TempEqBand {
         Bandwidth = 1f, Frequency = 62, Gain = 0
     });
     Np.EqualizerBands.Add(new TempEqBand {
         Bandwidth = 1f, Frequency = 125, Gain = 0
     });
     Np.EqualizerBands.Add(new TempEqBand {
         Bandwidth = 1f, Frequency = 250, Gain = 0
     });
     Np.EqualizerBands.Add(new TempEqBand {
         Bandwidth = 1f, Frequency = 500, Gain = 0
     });
     Np.EqualizerBands.Add(new TempEqBand {
         Bandwidth = 1f, Frequency = 1000, Gain = 0
     });
     Np.EqualizerBands.Add(new TempEqBand {
         Bandwidth = 1f, Frequency = 2000, Gain = 0
     });
     Np.EqualizerBands.Add(new TempEqBand {
         Bandwidth = 1f, Frequency = 4000, Gain = 0
     });
     Np.EqualizerBands.Add(new TempEqBand {
         Bandwidth = 1f, Frequency = 8000, Gain = 0
     });
     Np.EqualizerBands.Add(new TempEqBand {
         Bandwidth = 1f, Frequency = 16000, Gain = 0
     });
     Access.PlaybackManagerInstance.RegisterAudioPlayer(from ec in Np.GetCodecInfo().Values from e in ec select e, Np);
 }
예제 #4
0
 public void Init(IExtensionAccess contract)
 {
     _access = contract;
     _midiPlayer = new MidiPlayer();
     _access.PlaybackManagerInstance.RegisterAudioPlayer(_midiPlayer.Extensions, _midiPlayer);
 }
예제 #5
0
 public void Init(IExtensionAccess contract)
 {
     _access     = contract;
     _midiPlayer = new MidiPlayer();
     _access.PlaybackManagerInstance.RegisterAudioPlayer(_midiPlayer.Extensions, _midiPlayer);
 }