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(); }
public void LoadSound(Sound sound) { SoundChanged?.Invoke(this, EventArgs.Empty); WaveformPathFactory.Create(sound, out _maxPeakPath, out _avgPeakPath); RefreshBrushes(); }