Skip to content

Commit 0825385

Browse files
committed
play_file: use "blocking" argument instead of wait()
1 parent 65ddfbe commit 0825385

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/play_file.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
import sounddevice as sd
1717
import soundfile as sf
1818
data, fs = sf.read(args.filename, dtype='float32')
19-
sd.play(data, fs, device=args.device)
20-
status = sd.wait()
19+
sd.play(data, fs, device=args.device, blocking=True)
20+
status = sd.get_status()
2121
if status:
2222
logging.warning(str(status))
2323
except BaseException as e:

0 commit comments

Comments
 (0)