24{
25 const auto direction =
27
28 SECTION("Pull reads correctly past the end of the clip")
29 {
30 const auto clip = std::make_shared<FloatVectorClip>(
33 constexpr auto bufferSize = 3;
35
36 sut.Pull(output.channelPointers.data(), bufferSize);
38 std::vector<float> { 1.f, 2.f, 3.f } :
39 std::vector<float> { 5.f, 4.f, 3.f };
40 REQUIRE(output.channelVectors[0] == firstExpected);
41
42 sut.Pull(output.channelPointers.data(), bufferSize);
44 std::vector<float> { 4.f, 5.f, 0.f } :
45 std::vector<float> { 2.f, 1.f, 0.f };
46 REQUIRE(output.channelVectors[0] == secondExpected);
47 }
48}
constexpr auto sampleRate
std::vector< std::vector< float > > FloatVectorVector