summaryrefslogtreecommitdiff
path: root/test/test_pcm_volume.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-03-15 10:49:50 +0100
committerMax Kellermann <max@duempel.org>2014-03-15 10:53:13 +0100
commit3932e62fc7d8bc05e4f77c1b3cd69fd314cee3d1 (patch)
treec14b8ff0404fad7c68a058ad1b301dbe9b326a21 /test/test_pcm_volume.cxx
parent729304aef54ddecfb124c168ec1160f3bf970a47 (diff)
test/test_pcm: replace 256 with prime number
Use some odd number that will expose problems with remaining samples after optimized vector operations.
Diffstat (limited to 'test/test_pcm_volume.cxx')
-rw-r--r--test/test_pcm_volume.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_pcm_volume.cxx b/test/test_pcm_volume.cxx
index de880563d..2d908f6c1 100644
--- a/test/test_pcm_volume.cxx
+++ b/test/test_pcm_volume.cxx
@@ -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));