changeset 95:a2ad7085c262

Fix bug in _make_random_length_regions
author Amine Sehili <amine.sehili@gmail.com>
date Sun, 06 Jan 2019 14:28:33 +0100
parents 19300cbbb84d
children 382f30f8dab5
files tests/test_core.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_core.py	Sun Jan 06 14:19:53 2019 +0100
+++ b/tests/test_core.py	Sun Jan 06 14:28:33 2019 +0100
@@ -10,7 +10,7 @@
     regions = []
     for b in byte_seq:
         duration = round(random() * 10, 6)
-        data = b * int(duration * sampling_rate * sample_width * channels)
+        data = b * int(duration * sampling_rate) * sample_width * channels
         start = round(random() * 13, 3)
         region = AudioRegion(
             data, start, sampling_rate, sample_width, channels