Skip to content

Commit 7f625dc

Browse files
committed
play() etc.: force a copy of "mapping"
Fixes #135.
1 parent 52d025e commit 7f625dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sounddevice.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2446,6 +2446,7 @@ def _check_mapping(mapping, channels):
24462446
if mapping is None:
24472447
mapping = np.arange(channels)
24482448
else:
2449+
mapping = np.array(mapping, copy=True)
24492450
mapping = np.atleast_1d(mapping)
24502451
if mapping.min() < 1:
24512452
raise ValueError('channel numbers must not be < 1')

0 commit comments

Comments
 (0)