summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--tests/icles/equalizer-test.c22
2 files changed, 16 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index e2e297fc8..427bd8554 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2007-11-07 Sebastian Dröge <slomo@circular-chaos.org>
+ * tests/icles/equalizer-test.c: (do_slider_fiddling):
+ Fix gain ranges for the latest equalizer changes.
+
+2007-11-07 Sebastian Dröge <slomo@circular-chaos.org>
+
* ext/gio/gstgio.h:
Add macro to check if a stream supports seeking.
diff --git a/tests/icles/equalizer-test.c b/tests/icles/equalizer-test.c
index d45146a6d..d8fd8dda3 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;