summaryrefslogtreecommitdiff
path: root/subprojects/gst-plugins-bad/tests/validate/pitch/change_pitch_properties.validatetest
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/gst-plugins-bad/tests/validate/pitch/change_pitch_properties.validatetest')
-rw-r--r--subprojects/gst-plugins-bad/tests/validate/pitch/change_pitch_properties.validatetest41
1 files changed, 41 insertions, 0 deletions
diff --git a/subprojects/gst-plugins-bad/tests/validate/pitch/change_pitch_properties.validatetest b/subprojects/gst-plugins-bad/tests/validate/pitch/change_pitch_properties.validatetest
new file mode 100644
index 0000000000..a44feabdc6
--- /dev/null
+++ b/subprojects/gst-plugins-bad/tests/validate/pitch/change_pitch_properties.validatetest
@@ -0,0 +1,41 @@
+include, location="pitch-test.meta"
+pause
+
+checkpoint, text="Play normally"
+seek, start=2.0, stop=4.0, flags=accurate+flush, rate=1.0
+play
+wait, message-type=eos
+
+checkpoint, text="Play one octave higher"
+set-property, playback-time=position, target-element-name=pitch, property-name=pitch, property-value=2.0
+seek, start=2.0, stop=4.0, flags=accurate+flush, rate=1.0
+wait, message-type=eos
+
+checkpoint, text="Play one octave lower"
+set-property, playback-time=position, target-element-name=pitch, property-name=pitch, property-value=0.5
+seek, start=2.0, stop=4.0, flags=accurate+flush, rate=1.0
+wait, message-type=eos
+
+checkpoint, text="Play twice faster same pitch"
+set-property, playback-time=position, target-element-name=pitch, property-name=pitch, property-value=1.0
+set-property, playback-time=position, target-element-name=pitch, property-name=tempo, property-value=2.0
+seek, start=1.0, stop=2.0, flags=accurate+flush, rate=1.0
+wait, message-type=eos
+
+checkpoint, text="Play twice slower same pitch"
+set-property, playback-time=position, target-element-name=pitch, property-name=tempo, property-value=0.5
+seek, start=4.0, stop=8.0, flags=accurate+flush, rate=1.0
+wait, message-type=eos
+
+checkpoint, text="Play twice faster one octave higher"
+set-property, playback-time=position, target-element-name=pitch, property-name=tempo, property-value=1.0
+set-property, playback-time=position, target-element-name=pitch, property-name=rate, property-value=2.0
+seek, start=1.0, stop=2.0, flags=accurate+flush, rate=1.0
+wait, message-type=eos
+
+checkpoint, text="Play twice slower one octave lower"
+set-property, playback-time=position, target-element-name=pitch, property-name=rate, property-value=0.5
+seek, start=4.0, stop=8.0, flags=accurate+flush, rate=1.0
+wait, message-type=eos
+
+stop