diff options
Diffstat (limited to 'examples/rec_unlimited.py')
| -rwxr-xr-x | examples/rec_unlimited.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/rec_unlimited.py b/examples/rec_unlimited.py index b8f448f..262ed40 100755 --- a/examples/rec_unlimited.py +++ b/examples/rec_unlimited.py @@ -38,6 +38,8 @@ args = parser.parse_args() try: import sounddevice as sd import soundfile as sf + import numpy # Make sure NumPy is loaded before it is used in the callback + assert numpy # avoid "imported but unused" message (W0611) if args.list_devices: print(sd.query_devices()) |
