test/test_pcm: replace 256 with prime number

Use some odd number that will expose problems with remaining samples
after optimized vector operations.
This commit is contained in:
Max Kellermann
2014-03-15 10:49:50 +01:00
parent 729304aef5
commit 3932e62fc7
6 changed files with 13 additions and 13 deletions

View File

@@ -39,7 +39,7 @@ TestVolume(G g=G())
PcmVolume pv;
CPPUNIT_ASSERT(pv.Open(F, IgnoreError()));
constexpr size_t N = 256;
constexpr size_t N = 509;
static value_type zero[N];
const auto _src = TestDataBuffer<value_type, N>(g);
const ConstBuffer<void> src(_src, sizeof(_src));
@@ -98,7 +98,7 @@ PcmVolumeTest::TestVolumeFloat()
PcmVolume pv;
CPPUNIT_ASSERT(pv.Open(SampleFormat::FLOAT, IgnoreError()));
constexpr size_t N = 256;
constexpr size_t N = 509;
static float zero[N];
const auto _src = TestDataBuffer<float, N>(RandomFloat());
const ConstBuffer<void> src(_src, sizeof(_src));