Replace hard coded Pi constant with M_PI

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2023-10-03 04:55:44 -07:00
parent a1bd2e0d44
commit fbde40212c

View file

@ -9,7 +9,7 @@ typedef struct {
uint8_t bytes[3];
} sample_int24_t;
const double pi = 3.1415926535897932385;
const double pi = M_PI;
template <typename T>
void read_stream(std::istream& stream, T& value) {