This project has moved. For the latest updates, please go here.

Spectrum Analyzer cannot work on WPF

Apr 2, 2012 at 9:27 AM

Hi,

I implemented your Specturm Anlyzer to my project, i added Bass.NET and others thing need to run but i cannot run Spectrum Anlyzer,

please see my code block:

on XAML:

<BandedSpectrumAnalyzer:ReflectionControl Grid.Row="1"
                              Grid.Column="1"
                              HorizontalAlignment="Stretch"
                              VerticalAlignment="Stretch"
                              Margin="5">
                    <BandedSpectrumAnalyzer:SpectrumAnalyzer x:Name="spectrumAnalyzer"
                                 Height="160"
                                 HorizontalAlignment="Stretch"
                                 VerticalAlignment="Bottom"
                                 AveragePeaks="False"
                                 MinimumFrequency="20"
                                 MaximumFrequency="20000"
                                 PeakFallDelay="10"
                                 BarHeightScaling="Decibel" />
                </BandedSpectrumAnalyzer:ReflectionControl>
On code:
 public MainWindow()
        {
            InitializeComponent();
            BassEngine bassEngine = BassEngine.Instance;
            bassEngine.PropertyChanged += BassEngine_PropertyChanged;
            UIHelper.Bind(bassEngine, "CanStop", StopButton, Button.IsEnabledProperty);
            UIHelper.Bind(bassEngine, "CanPlay", PlayButton, Button.IsEnabledProperty);
            UIHelper.Bind(bassEngine, "CanPause", PauseButton, Button.IsEnabledProperty);
            UIHelper.Bind(bassEngine, "ChannelLength", ProgressSlider, Slider.MaximumProperty);
            spectrumAnalyzer.RegisterSoundPlayer(bassEngine);
}
And when i guess when BassEngine.Instance.Play(); SpectrumAnalyzer will render visualization but i can see any change on my UI.
I missed something or something else...
Please help me.
Thanks & regards.
P.S: i can't find any document to use this library