Пример #1
0
        public MainWindow()
        {
            InitializeComponent();

            soundEngine = NAudioEngine.Instance;
            soundEngine.PropertyChanged += NAudioEngine_PropertyChanged;

            UIHelper.Bind(soundEngine, "CanStop", StopButton, Button.IsEnabledProperty);
            UIHelper.Bind(soundEngine, "CanPlay", PlayButton, Button.IsEnabledProperty);
            UIHelper.Bind(soundEngine, "CanPause", PauseButton, Button.IsEnabledProperty);

            waveformTimeline.RegisterSoundPlayer(soundEngine);

            SetDefaults();
        }
Пример #2
0
        private void NAudioEngine_PropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            NAudioEngine engine = NAudioEngine.Instance;

            switch (e.PropertyName)
            {
            case "ChannelPosition":

                break;

            default:
                // Do Nothing
                break;
            }
        }