Skip to content
Commit a3948347 authored by Vit Stanicek's avatar Vit Stanicek Committed by Benjamin Cabé
Browse files

samples: i2s_codec: Fix buffer size



Use BLOCK_SIZE instead of the test 16 kHz sine wave length. Add a build
check so that BLOCK_SIZE doesn't overflow the test sine wave buffer.

This accounts for situations where the sample queue can't be big enough,
mainly when it doesn't fit in the device's SRAM and the count of samples
queued will be less. As the test sine wave vector contains ~42 periods,
it can be truncated.

Signed-off-by: default avatarVit Stanicek <vit.stanicek@nxp.com>
parent 36967aff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment