diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2015-07-22 17:08:45 +0200 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2015-07-22 17:08:45 +0200 |
| commit | 0825385720e5f995f385eca8708b5a07594f93a9 (patch) | |
| tree | ab36b80d91163d14e486efeb9b1252a428e9c3c4 /examples | |
| parent | 65ddfbeaed7157d86993be60dda3163b17f22fc0 (diff) | |
play_file: use "blocking" argument instead of wait()
Diffstat (limited to 'examples')
| -rwxr-xr-x | examples/play_file.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/play_file.py b/examples/play_file.py index 8483777..cbbe828 100755 --- a/examples/play_file.py +++ b/examples/play_file.py @@ -16,8 +16,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) - status = sd.wait() + sd.play(data, fs, device=args.device, blocking=True) + status = sd.get_status() if status: logging.warning(str(status)) except BaseException as e: |
