#include #include #include TEST_CASE("MixToMono", "[AUDIO][ALGORITHM]") { SECTION("Mix two channels together") { std::array input{ 1, 3, 5, 3 }; std::array output{ 0, 0 }; // Two channels and two frames ! Nz::MixToMono(input.data(), output.data(), 2, 2); std::array theoric{ 2, 4 }; // It's the mean of the two channels REQUIRE(output == theoric); } }