summaryrefslogtreecommitdiffstats
path: root/src/pulsecore
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2010-10-27 11:30:14 +0100
committerArun Raghavan <arun.raghavan@collabora.co.uk>2011-03-05 13:18:01 +0530
commit516dd169b493e37c8445cb68831529020272d0d5 (patch)
tree58f6692ef5c65d81c42f5a86f9bbd0fc2e078b39 /src/pulsecore
parent50448e11308c455f0ff504ecbb92e730c7ca2bdb (diff)
volume: Fix sample array size for tests
Somewhere in the history of the MMX tests, the number of channels was changed from 1 to 2, but the number of samples was not increased to make it even (multiple of the frame size).
Diffstat (limited to 'src/pulsecore')
-rw-r--r--src/pulsecore/svolume_arm.c2
-rw-r--r--src/pulsecore/svolume_mmx.c2
-rw-r--r--src/pulsecore/svolume_sse.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/pulsecore/svolume_arm.c b/src/pulsecore/svolume_arm.c
index 12660dd4..a028b827 100644
--- a/src/pulsecore/svolume_arm.c
+++ b/src/pulsecore/svolume_arm.c
@@ -130,7 +130,7 @@ pa_volume_s16ne_arm (int16_t *samples, int32_t *volumes, unsigned channels, unsi
#ifdef RUN_TEST
#define CHANNELS 2
-#define SAMPLES 1023
+#define SAMPLES 1022
#define TIMES 1000
#define PADDING 16
diff --git a/src/pulsecore/svolume_mmx.c b/src/pulsecore/svolume_mmx.c
index 5bfe6d4f..2ffd608b 100644
--- a/src/pulsecore/svolume_mmx.c
+++ b/src/pulsecore/svolume_mmx.c
@@ -243,7 +243,7 @@ pa_volume_s16re_mmx (int16_t *samples, int32_t *volumes, unsigned channels, unsi
#ifdef RUN_TEST
#define CHANNELS 2
-#define SAMPLES 1021
+#define SAMPLES 1022
#define TIMES 1000
#define PADDING 16
diff --git a/src/pulsecore/svolume_sse.c b/src/pulsecore/svolume_sse.c
index f3aa1edb..ff2a12ee 100644
--- a/src/pulsecore/svolume_sse.c
+++ b/src/pulsecore/svolume_sse.c
@@ -255,7 +255,7 @@ pa_volume_s16re_sse2 (int16_t *samples, int32_t *volumes, unsigned channels, uns
#ifdef RUN_TEST
#define CHANNELS 2
-#define SAMPLES 1021
+#define SAMPLES 1022
#define TIMES 1000
#define PADDING 16