|
HART
0.1.0
High level Audio Regression and Testing
|
Stream manipulators to set decimal precision for unit-specific output. More...
Functions | |
| std::ostream & | linPrecision (std::ostream &stream) |
| Sets number of decimal places for linear (sample) values. | |
| std::ostream & | dbPrecision (std::ostream &stream) |
| Sets number of decimal places for values in decibels. | |
| std::ostream & | secPrecision (std::ostream &stream) |
| Sets number of decimal places for values in seconds. | |
| std::ostream & | hzPrecision (std::ostream &stream) |
| Sets number of decimal places for values in hertz. | |
| std::ostream & | radPrecision (std::ostream &stream) |
| Sets number of decimal places for values in radians. | |
Stream manipulators to set decimal precision for unit-specific output.
Precision values come from CLI config (e.g. --db-decimals). Use like: stream << hart::dbPrecision << myValue;
|
inline |
Sets number of decimal places for linear (sample) values.
The precision is set via --lin-decimals CLI argument
Definition at line 18 of file hart_precision.hpp.
|
inline |
Sets number of decimal places for values in decibels.
The precision is set via --db-decimals CLI argument
Definition at line 26 of file hart_precision.hpp.
|
inline |
Sets number of decimal places for values in seconds.
The precision is set via --sec-decimals CLI argument
Definition at line 34 of file hart_precision.hpp.
|
inline |
Sets number of decimal places for values in hertz.
The precision is set via --hz-decimals CLI argument
Definition at line 42 of file hart_precision.hpp.
|
inline |
Sets number of decimal places for values in radians.
The precision is set via --rad-decimals CLI argument
Definition at line 50 of file hart_precision.hpp.