diff --git a/nodes/testpattern/main.cpp b/nodes/testpattern/main.cpp index bbe1b26..a299513 100644 --- a/nodes/testpattern/main.cpp +++ b/nodes/testpattern/main.cpp @@ -69,8 +69,9 @@ class TestPatternNode : public dmf::NodeBase { const size_t samples_per_frame = static_cast(sample_rate) * static_cast(fps_den) / static_cast(fps_num); - // -18 dBFS broadcast reference level - const float amplitude = static_cast(std::pow(10.0, -18.0 / 20.0)); + // default -18 dBFS broadcast reference level + const float amplitude_db = config().value("amplitude_db", -18.0f); + const float amplitude = std::pow(10.0f, amplitude_db / 20.0f); uint64_t video_index = mxlGetCurrentIndex(&video_rate); uint64_t audio_index = 0;