Mercurial > hg > auditok
diff tests/test_core.py @ 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 | a10fc63118a8 |
children | ceebd8e331c4 |
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