File tree 1 file changed +19
-6
lines changed
1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,25 @@ public partial class MainWindow : Window
55
55
56
56
public MainWindow ( )
57
57
{
58
- // Use PFFFT as FFT implementation
59
- FFTFactory . Factory = new Aurio . PFFFT . FFTFactory ( ) ;
60
- // Use Soxr as resampler implementation
61
- ResamplerFactory . Factory = new Aurio . Soxr . ResamplerFactory ( ) ;
62
- // Use FFmpeg for file reading/decoding
63
- AudioStreamFactory . AddFactory ( new FFmpegAudioStreamFactory ( ) ) ;
58
+ try
59
+ {
60
+ // Use PFFFT as FFT implementation
61
+ FFTFactory . Factory = new Aurio . PFFFT . FFTFactory ( ) ;
62
+ // Use Soxr as resampler implementation
63
+ ResamplerFactory . Factory = new Aurio . Soxr . ResamplerFactory ( ) ;
64
+ // Use FFmpeg for file reading/decoding
65
+ AudioStreamFactory . AddFactory ( new FFmpegAudioStreamFactory ( ) ) ;
66
+ }
67
+ catch ( Exception e )
68
+ {
69
+ MessageBox . Show (
70
+ e . Message ,
71
+ "AudioAlign startup error" ,
72
+ MessageBoxButton . OK ,
73
+ MessageBoxImage . Error ,
74
+ MessageBoxResult . Yes
75
+ ) ;
76
+ }
64
77
65
78
recentProjects = new RecentProjects ( ) ;
66
79
You can’t perform that action at this time.
0 commit comments