private void Load()
        {
            OpenFileDialog openFileDialog = new OpenFileDialog
            {
                Filter           = "Sound files (*.wav)|*.wav",
                RestoreDirectory = true,
                Multiselect      = true
            };

            if (openFileDialog.ShowDialog() == true)
            {
                for (int i = 0; i < openFileDialog.FileNames.Length; i++)
                {
                    var data = WavReader.ReadData(openFileDialog.FileNames[i]);
                    SoundPlayerViewModel.AddSound(openFileDialog.SafeFileNames[i], data);
                }
            }
        }
        public void GenerateTime()
        {
            var wavData = new WavData(44100, Time);

            SoundPlayerViewModel.AddSound("TimeFiltered", wavData);
        }
        public void GenerateFrequency()
        {
            var wavData = new WavData(44100, Frequency);

            SoundPlayerViewModel.AddSound("FrequencyFiltered", wavData);
        }
        public void GenerateOriginal()
        {
            var wavData = new WavData(44100, Original);

            SoundPlayerViewModel.AddSound("Original", wavData);
        }
Esempio n. 5
0
        public void GenerateEqualized()
        {
            var wavData = new WavData(44100, Equalized);

            SoundPlayerViewModel.AddSound("Equalized", wavData);
        }