Exemple #1
0
 public void LoadSound(FmodSystem system, string filename)
 {
     SoundChanged?.Invoke(this, EventArgs.Empty);
     new Thread(() =>
     {
         using (var sound = system.CreateSound(filename, Mode.Default))
             WaveformPathFactory.Create(sound, out _maxPeakPath, out _avgPeakPath);
         Invoke(new Action(RefreshBrushes));
     }).Start();
 }
Exemple #2
0
 public void LoadSound(Sound sound)
 {
     SoundChanged?.Invoke(this, EventArgs.Empty);
     WaveformPathFactory.Create(sound, out _maxPeakPath, out _avgPeakPath);
     RefreshBrushes();
 }