diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2016-03-12 12:00:03 +0100 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2016-03-12 12:00:03 +0100 |
| commit | 68e26a08527af179a249f77152387c37a129ac9b (patch) | |
| tree | 7330a6f2dfeabb57dca722c3e20204dc09d2a5a2 | |
| parent | b5e50e073ba70128c89e68018a42cd4920552375 (diff) | |
Fix playrec() to allow 'data' to be arbitrary sequence type
| -rw-r--r-- | sounddevice.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sounddevice.py b/sounddevice.py index 52f578e..46c0ef2 100644 --- a/sounddevice.py +++ b/sounddevice.py @@ -422,7 +422,7 @@ def playrec(data, samplerate=None, channels=None, dtype=None, ctx = _CallbackContext() output_frames = ctx.check_data(data, output_mapping) if dtype is None: - dtype = data.dtype # ignore module defaults + dtype = ctx.data.dtype # ignore module defaults input_frames = ctx.check_out(out, output_frames, channels, dtype, input_mapping) if input_frames != output_frames: |
