Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();
            analyzer = new AudioAnalyzer(this);

            visBlurEffect = new BlurEffect();
            visBlurEffect.RenderingBias = RenderingBias.Quality;
            visBlurEffect.KernelType    = KernelType.Gaussian;
            visBlurEffect.Radius        = 0;

            visBlurEffectAnim          = new DoubleAnimation();
            visBlurEffectAnim.From     = 0;
            visBlurEffectAnim.To       = 20;
            visBlurEffectAnim.Duration = new Duration(TimeSpan.FromSeconds(0.2));

            visualizer.Effect = visBlurEffect;

            visualizer.SetInstance(analyzer);
        }
 public void SetInstance(AudioAnalyzer inst)
 {
     _inst = inst;
 }