mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Show region peak amplitude to 2 decimal places. Fixes #3519.
git-svn-id: svn://localhost/ardour2/branches/3.0@7955 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b5ab2e030b
commit
b842ba42f5
1 changed files with 5 additions and 3 deletions
|
|
@ -17,8 +17,6 @@
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <boost/lexical_cast.hpp>
|
|
||||||
|
|
||||||
#include "pbd/memento_command.h"
|
#include "pbd/memento_command.h"
|
||||||
#include "pbd/stateful_diff_command.h"
|
#include "pbd/stateful_diff_command.h"
|
||||||
#include "pbd/pthread_utils.h"
|
#include "pbd/pthread_utils.h"
|
||||||
|
|
@ -139,6 +137,10 @@ AudioRegionEditor::peak_amplitude_thread ()
|
||||||
void
|
void
|
||||||
AudioRegionEditor::peak_amplitude_found (double p)
|
AudioRegionEditor::peak_amplitude_found (double p)
|
||||||
{
|
{
|
||||||
_peak_amplitude.set_text (boost::lexical_cast<string> (p));
|
stringstream s;
|
||||||
|
s.precision (2);
|
||||||
|
s.setf (ios::fixed, ios::floatfield);
|
||||||
|
s << p;
|
||||||
|
_peak_amplitude.set_text (s.str ());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue