tests: fix a thinko in the wavenc example

The code is supposed to follow somehow what the comment above says, that
is to have one channel with a wave of freq 440 and the other channel
with a wave of freq 880, but an off by one error results in frequencies
of 0 and 440.

https://bugzilla.gnome.org/show_bug.cgi?id=735673
This commit is contained in:
Antonio Ospite 2014-08-29 15:40:23 +02:00 committed by Tim-Philipp Müller
parent bdcc0390af
commit be5f94734a

View file

@ -110,8 +110,8 @@ make_n_channel_wav (const gint channels, const GValueArray * arr)
for (i = 0; i < channels; i++) {
audiotestsrc[i] = gst_element_factory_make ("audiotestsrc", NULL);
fail_unless (audiotestsrc[i] != NULL);
g_object_set (G_OBJECT (audiotestsrc[i]), "wave", 0, "freq", 440.0 * i,
"num-buffers", 100, NULL);
g_object_set (G_OBJECT (audiotestsrc[i]), "wave", 0, "freq",
440.0 * (i + 1), "num-buffers", 100, NULL);
gst_bin_add (GST_BIN (pipeline), audiotestsrc[i]);
fail_unless (gst_element_link (audiotestsrc[i], interleave));
}