From 32fdcda970f2f2a2e9f979d5759a4c2cd8d53c54 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Thu, 16 Feb 2017 20:44:39 +0100 Subject: play_file example: use wait() instead of blocking=True --- examples/play_file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/play_file.py') diff --git a/examples/play_file.py b/examples/play_file.py index cf78815..c474a63 100755 --- a/examples/play_file.py +++ b/examples/play_file.py @@ -29,8 +29,8 @@ try: import sounddevice as sd import soundfile as sf data, fs = sf.read(args.filename, dtype='float32') - sd.play(data, fs, device=args.device, blocking=True) - status = sd.get_status() + sd.play(data, fs, device=args.device) + status = sd.wait() if status: parser.exit('Error during playback: ' + str(status)) except KeyboardInterrupt: -- cgit v1.2.3