mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
[MOVED FROM BAD 4/5] tests/icles/equalizer-test.c: Fix gain ranges for the latest equalizer changes.
Original commit message from CVS: * tests/icles/equalizer-test.c: (do_slider_fiddling): Fix gain ranges for the latest equalizer changes.
This commit is contained in:
parent
04689cdb12
commit
bece468db4
1 changed files with 11 additions and 11 deletions
|
@ -115,7 +115,7 @@ do_slider_fiddling (GstElement * playbin, GstElement * eq)
|
|||
{
|
||||
gboolean stop;
|
||||
guint num_bands, i;
|
||||
gdouble d, step = 0.2;
|
||||
gdouble d, step = 0.5;
|
||||
|
||||
stop = FALSE;
|
||||
|
||||
|
@ -125,34 +125,34 @@ do_slider_fiddling (GstElement * playbin, GstElement * eq)
|
|||
|
||||
while (!stop) {
|
||||
for (i = 0; !stop && i < num_bands; ++i) {
|
||||
d = 0.0;
|
||||
while (!stop && d <= 1.0) {
|
||||
d = -24.0;
|
||||
while (!stop && d <= 12.0) {
|
||||
stop = equalizer_set_band_value_and_wait (eq, i, d);
|
||||
d += step;
|
||||
}
|
||||
d = 1.0;
|
||||
while (!stop && d >= -1.0) {
|
||||
d = 12.0;
|
||||
while (!stop && d >= -24.0) {
|
||||
stop = equalizer_set_band_value_and_wait (eq, i, d);
|
||||
d -= step;
|
||||
}
|
||||
d = -1.0;
|
||||
while (!stop && d <= 0.0) {
|
||||
d = -24.0;
|
||||
while (!stop && d <= 12.0) {
|
||||
stop = equalizer_set_band_value_and_wait (eq, i, d);
|
||||
d += step;
|
||||
}
|
||||
}
|
||||
|
||||
d = 0.0;
|
||||
while (!stop && d <= 1.0) {
|
||||
while (!stop && d <= 12.0) {
|
||||
stop = equalizer_set_all_band_values_and_wait (eq, num_bands, d);
|
||||
d += step;
|
||||
}
|
||||
d = 1.0;
|
||||
while (!stop && d >= -1.0) {
|
||||
d = 12.0;
|
||||
while (!stop && d >= -24.0) {
|
||||
stop = equalizer_set_all_band_values_and_wait (eq, num_bands, d);
|
||||
d -= step;
|
||||
}
|
||||
d = -1.0;
|
||||
d = -24.0;
|
||||
while (!stop && d <= 0.0) {
|
||||
stop = equalizer_set_all_band_values_and_wait (eq, num_bands, d);
|
||||
d += step;
|
||||
|
|
Loading…
Reference in a new issue