summaryrefslogtreecommitdiffstats
path: root/tests/icles
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2007-11-07 15:36:59 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2007-11-07 15:36:59 +0000
commitad71ce1337a88bfe5664366ba2e2a69097895d02 (patch)
treeb003c704004ed19bc29121bc8e303a9cbc016e40 /tests/icles
parentda1b2a0a6fb36e4b22dad54b26cf561ca3c1aad1 (diff)
downloadgst-plugins-bad-ad71ce1337a88bfe5664366ba2e2a69097895d02.tar.gz
gst-plugins-bad-ad71ce1337a88bfe5664366ba2e2a69097895d02.tar.bz2
gst-plugins-bad-ad71ce1337a88bfe5664366ba2e2a69097895d02.zip
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.
Diffstat (limited to 'tests/icles')
-rw-r--r--tests/icles/equalizer-test.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/icles/equalizer-test.c b/tests/icles/equalizer-test.c
index d45146a6..d8fd8dda 100644
--- a/tests/icles/equalizer-test.c
+++ b/tests/icles/equalizer-test.c
@@ -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;