Skip to content

Commit

Permalink
Tests: view mode (test correct allocation)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvnnz committed Mar 31, 2024
1 parent 047e469 commit f8a5c63
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/audioBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,13 @@ TEST_CASE("AudioBuffer")
testMove(a, b, BUFFER_SIZE, numChannels);
}
}

SECTION("test view")
{
constexpr int bufferSize = 1024;
constexpr int numChannels = 1;

std::unique_ptr<float[]> raw = std::make_unique<float[]>(bufferSize);
AudioBuffer buf(raw.get(), bufferSize, numChannels);
}
}

0 comments on commit f8a5c63

Please sign in to comment.