mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
peak amplitude thread needs tempo map
This commit is contained in:
parent
3ea5fd5d91
commit
6678cd74f4
1 changed files with 6 additions and 0 deletions
|
|
@ -28,6 +28,8 @@
|
|||
#include "pbd/stateful_diff_command.h"
|
||||
#include "pbd/pthread_utils.h"
|
||||
|
||||
#include "temporal/tempo.h"
|
||||
|
||||
#include "ardour/audioregion.h"
|
||||
#include "ardour/session_event.h"
|
||||
#include "ardour/dB.h"
|
||||
|
|
@ -154,6 +156,10 @@ AudioRegionEditor::peak_amplitude_thread ()
|
|||
break;
|
||||
}
|
||||
|
||||
/* update thread-local tempo map */
|
||||
|
||||
Temporal::TempoMap::fetch ();
|
||||
|
||||
/* compute peak amplitude and signal the fact */
|
||||
PeakAmplitudeFound (accurate_coefficient_to_dB (_audio_region->maximum_amplitude ())); /* EMIT SIGNAL */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue