Commit 0a303d6a authored by Mathieu Duponchelle's avatar Mathieu Duponchelle Committed by Thibault Saunier
Browse files

Audio previewer : initialize the list with an int multiplier.

parent 1dcf6755
......@@ -869,7 +869,7 @@ class AudioPreviewer(Clutter.Actor, PreviewGenerator, Zoomable, Loggable):
if self.peaks is None:
self.peaks = []
for channel in p:
self.peaks.append([0] * self.nSamples)
self.peaks.append([0] * int(self.nSamples))
pos = int(st / 10000000)
if pos >= len(self.peaks[0]):
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