diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2010-10-26 15:20:19 +0100 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2011-03-05 13:18:01 +0530 |
commit | 50448e11308c455f0ff504ecbb92e730c7ca2bdb (patch) | |
tree | 9e4efd15173a0c03490d5ac9ca89686c9d287ca6 /src/pulsecore/svolume_mmx.c | |
parent | f4a2a8ebfe78e07593a34ab06968c67ba5d18d46 (diff) |
volume: Make tests use only valid volumes
Diffstat (limited to 'src/pulsecore/svolume_mmx.c')
-rw-r--r-- | src/pulsecore/svolume_mmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/svolume_mmx.c b/src/pulsecore/svolume_mmx.c index 3e2992a2..5bfe6d4f 100644 --- a/src/pulsecore/svolume_mmx.c +++ b/src/pulsecore/svolume_mmx.c @@ -267,7 +267,7 @@ static void run_test (void) { memcpy (samples_orig, samples, sizeof (samples)); for (i = 0; i < CHANNELS; i++) - volumes[i] = rand() >> 1; + volumes[i] = PA_CLAMP_VOLUME(rand() >> 1); /* volumes[i] = 0x0000ffff; */ for (padding = 0; padding < PADDING; padding++, i++) volumes[i] = volumes[padding]; |