Beispiel #1
0
        public MainWindow()
        {
            //singleton
            Instance = this;

            InitializeComponent();

            //get device
            MMDevice device = MMDeviceEnumerator.DefaultAudioEndpoint(DataFlow.Render, Role.Console);

            //init analyzer
            Analyzer.CreateAnalyserBars();
            Analyzer.InitAudioSource(device);

            //init mixer
            Mixer.CreateMixerChannels(device);
        }