mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
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:
parent
bdcc0390af
commit
be5f94734a
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue