Commit 9f93f503 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

tests: audiowsincband: unmap examined output buffers

parent 12d7acf6
...@@ -238,6 +238,7 @@ GST_START_TEST (test_32_bp_11025hz) ...@@ -238,6 +238,7 @@ GST_START_TEST (test_32_bp_11025hz)
rms += res[i] * res[i]; rms += res[i] * res[i];
rms = sqrt (rms / buffer_length); rms = sqrt (rms / buffer_length);
fail_unless (rms >= 0.4); fail_unless (rms >= 0.4);
gst_buffer_unmap (outbuffer, &map);
} }
/* cleanup */ /* cleanup */
...@@ -312,6 +313,7 @@ GST_START_TEST (test_32_bp_22050hz) ...@@ -312,6 +313,7 @@ GST_START_TEST (test_32_bp_22050hz)
rms += res[i] * res[i]; rms += res[i] * res[i];
rms = sqrt (rms / buffer_length); rms = sqrt (rms / buffer_length);
fail_unless (rms <= 0.3); fail_unless (rms <= 0.3);
gst_buffer_unmap (outbuffer, &map);
} }
/* cleanup */ /* cleanup */
...@@ -383,6 +385,7 @@ GST_START_TEST (test_32_br_0hz) ...@@ -383,6 +385,7 @@ GST_START_TEST (test_32_br_0hz)
rms += res[i] * res[i]; rms += res[i] * res[i];
rms = sqrt (rms / buffer_length); rms = sqrt (rms / buffer_length);
fail_unless (rms >= 0.9); fail_unless (rms >= 0.9);
gst_buffer_unmap (outbuffer, &map);
} }
/* cleanup */ /* cleanup */
...@@ -459,6 +462,7 @@ GST_START_TEST (test_32_br_11025hz) ...@@ -459,6 +462,7 @@ GST_START_TEST (test_32_br_11025hz)
rms += res[i] * res[i]; rms += res[i] * res[i];
rms = sqrt (rms / buffer_length); rms = sqrt (rms / buffer_length);
fail_unless (rms <= 0.35); fail_unless (rms <= 0.35);
gst_buffer_unmap (outbuffer, &map);
} }
/* cleanup */ /* cleanup */
...@@ -533,6 +537,7 @@ GST_START_TEST (test_32_br_22050hz) ...@@ -533,6 +537,7 @@ GST_START_TEST (test_32_br_22050hz)
rms += res[i] * res[i]; rms += res[i] * res[i];
rms = sqrt (rms / buffer_length); rms = sqrt (rms / buffer_length);
fail_unless (rms >= 0.9); fail_unless (rms >= 0.9);
gst_buffer_unmap (outbuffer, &map);
} }
/* cleanup */ /* cleanup */
...@@ -666,6 +671,7 @@ GST_START_TEST (test_64_bp_0hz) ...@@ -666,6 +671,7 @@ GST_START_TEST (test_64_bp_0hz)
rms += res[i] * res[i]; rms += res[i] * res[i];
rms = sqrt (rms / buffer_length); rms = sqrt (rms / buffer_length);
fail_unless (rms <= 0.1); fail_unless (rms <= 0.1);
gst_buffer_unmap (outbuffer, &map);
} }
/* cleanup */ /* cleanup */
...@@ -741,6 +747,7 @@ GST_START_TEST (test_64_bp_11025hz) ...@@ -741,6 +747,7 @@ GST_START_TEST (test_64_bp_11025hz)
rms += res[i] * res[i]; rms += res[i] * res[i];
rms = sqrt (rms / buffer_length); rms = sqrt (rms / buffer_length);
fail_unless (rms >= 0.4); fail_unless (rms >= 0.4);
gst_buffer_unmap (outbuffer, &map);
} }
/* cleanup */ /* cleanup */
...@@ -815,6 +822,7 @@ GST_START_TEST (test_64_bp_22050hz) ...@@ -815,6 +822,7 @@ GST_START_TEST (test_64_bp_22050hz)
rms += res[i] * res[i]; rms += res[i] * res[i];
rms = sqrt (rms / buffer_length); rms = sqrt (rms / buffer_length);
fail_unless (rms <= 0.3); fail_unless (rms <= 0.3);
gst_buffer_unmap (outbuffer, &map);
} }
/* cleanup */ /* cleanup */
...@@ -886,6 +894,7 @@ GST_START_TEST (test_64_br_0hz) ...@@ -886,6 +894,7 @@ GST_START_TEST (test_64_br_0hz)
rms += res[i] * res[i]; rms += res[i] * res[i];
rms = sqrt (rms / buffer_length); rms = sqrt (rms / buffer_length);
fail_unless (rms >= 0.9); fail_unless (rms >= 0.9);
gst_buffer_unmap (outbuffer, &map);
} }
/* cleanup */ /* cleanup */
...@@ -962,6 +971,7 @@ GST_START_TEST (test_64_br_11025hz) ...@@ -962,6 +971,7 @@ GST_START_TEST (test_64_br_11025hz)
rms += res[i] * res[i]; rms += res[i] * res[i];
rms = sqrt (rms / buffer_length); rms = sqrt (rms / buffer_length);
fail_unless (rms <= 0.35); fail_unless (rms <= 0.35);
gst_buffer_unmap (outbuffer, &map);
} }
/* cleanup */ /* cleanup */
...@@ -1036,6 +1046,7 @@ GST_START_TEST (test_64_br_22050hz) ...@@ -1036,6 +1046,7 @@ GST_START_TEST (test_64_br_22050hz)
rms += res[i] * res[i]; rms += res[i] * res[i];
rms = sqrt (rms / buffer_length); rms = sqrt (rms / buffer_length);
fail_unless (rms >= 0.9); fail_unless (rms >= 0.9);
gst_buffer_unmap (outbuffer, &map);
} }
/* cleanup */ /* cleanup */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment