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);
 }
Esempio n. 2
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);
 }