diff options
author | Ben Loftis <ben@glw.com> | 2009-08-19 13:33:02 +0000 |
---|---|---|
committer | Ben Loftis <ben@glw.com> | 2009-08-19 13:33:02 +0000 |
commit | c002d4c9b09fa4017974f244f8e87428b7f23b38 (patch) | |
tree | fdeda3248ee24d1c4c5bb01bc1f51a1903235da3 /libs | |
parent | 33964ad5020e8d481a0f88b545f9356d65817b4d (diff) |
keep the transient auto-analyse dialog from showing up more than once per launch of Ardour
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5547 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/audioregion.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index 9a627472d7..87d79c6c2c 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -1636,14 +1636,21 @@ AudioRegion::get_transients (AnalysisFeatureList& results, bool force_new) /* no existing/complete transient info */ + static bool analyse_dialog_shown = false; if (!Config->get_auto_analyse_audio()) { - pl->session().Dialog (_("\ + if ( !analyse_dialog_shown ) { + pl->session().Dialog (_("\ You have requested an operation that requires audio analysis.\n\n\ You currently have \"auto-analyse-audio\" disabled, which means\n\ that transient data must be generated every time it is required.\n\n\ If you are doing work that will require transient data on a\n\ regular basis, you should probably enable \"auto-analyse-audio\"\n\ -then quit ardour and restart.")); +then quit ardour and restart.\n\n\ +This dialog will not display again. But you may notice a slight delay\n\ +in this and future transient-detection operations.\n\ +")); + analyse_dialog_shown = true; //only show this dialog once + } } TransientDetector t (pl->session().frame_rate()); |