Skip to content

Commit

Permalink
Pass tuple to 'np.vstack' and 'np.hstack' in 'AudioClip.to_soundarray' (
Browse files Browse the repository at this point in the history
#1443)

Prevents deprecation warning
  • Loading branch information
mondeja authored Jan 14, 2021
1 parent 381be8c commit df62fcd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions moviepy/audio/AudioClip.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ def to_soundarray(
if tt is None:
if self.duration > max_duration:
return stacker(
self.iter_chunks(
fps=fps, quantize=quantize, nbytes=2, chunksize=buffersize
tuple(
self.iter_chunks(
fps=fps, quantize=quantize, nbytes=2, chunksize=buffersize
)
)
)
else:
Expand Down

0 comments on commit df62fcd

Please sign in to comment.