Fix another lot of warnings from Clang
Closes #90 Closes #91 Closes #92 Closes #93
This commit is contained in:
@@ -7,13 +7,13 @@ TEST_CASE("MixToMono", "[AUDIO][ALGORITHM]")
|
||||
{
|
||||
SECTION("Mix two channels together")
|
||||
{
|
||||
std::array<int, 4> input{ 1, 3, 5, 3 };
|
||||
std::array<int, 2> output{ 0, 0 };
|
||||
std::array<int, 4> input = { { 1, 3, 5, 3 } };
|
||||
std::array<int, 2> output = { { 0, 0 } };
|
||||
|
||||
// Two channels and two frames !
|
||||
Nz::MixToMono(input.data(), output.data(), 2, 2);
|
||||
|
||||
std::array<int, 2> theoric{ 2, 4 }; // It's the mean of the two channels
|
||||
REQUIRE(output == theoric);
|
||||
std::array<int, 2> theoric = { { 2, 4 } }; // It's the mean of the two channels
|
||||
CHECK(output == theoric);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user