mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
volume: Make tests use only valid volumes
This commit is contained in:
parent
f4a2a8ebfe
commit
50448e1130
3 changed files with 3 additions and 3 deletions
|
|
@ -152,7 +152,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);
|
||||
for (padding = 0; padding < PADDING; padding++, i++)
|
||||
volumes[i] = volumes[padding];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue