diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2018-09-23 20:44:08 +0200 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2018-09-23 20:44:08 +0200 |
| commit | f16b9487ba22624cad1552fbd85077069785cac2 (patch) | |
| tree | bb28f48590d5a4f9023557104a524aa42a8c605c /examples | |
| parent | 92adb69a10e04b78d510ec13a7cca152ceab6c45 (diff) | |
play_long_file example: Change ctype -> dtype
This was changed in https://github.com/bastibe/SoundFile/pull/179
and removed in https://github.com/bastibe/SoundFile/pull/200.
Diffstat (limited to 'examples')
| -rwxr-xr-x | examples/play_long_file.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/play_long_file.py b/examples/play_long_file.py index cdc37d1..90e41c9 100755 --- a/examples/play_long_file.py +++ b/examples/play_long_file.py @@ -70,7 +70,7 @@ try: with sf.SoundFile(args.filename) as f: for _ in range(args.buffersize): - data = f.buffer_read(args.blocksize, ctype='float') + data = f.buffer_read(args.blocksize, dtype='float32') if not data: break q.put_nowait(data) # Pre-fill queue @@ -82,7 +82,7 @@ try: with stream: timeout = args.blocksize * args.buffersize / f.samplerate while data: - data = f.buffer_read(args.blocksize, ctype='float') + data = f.buffer_read(args.blocksize, dtype='float32') q.put(data, timeout=timeout) event.wait() # Wait until playback is finished except KeyboardInterrupt: |
