diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2016-03-13 12:22:16 +0100 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2016-03-13 12:22:16 +0100 |
| commit | cc654c9b7a68d78c5b34dc3a70beb662143c27b5 (patch) | |
| tree | 680b289312edb24e2587528037d8e4ede334f226 /examples/wire.py | |
| parent | 70652e158dbd1f7dbccfc6fd90e80d38ac88f95c (diff) | |
DOC: Rename status variables to cumulated_status
Diffstat (limited to 'examples/wire.py')
| -rwxr-xr-x | examples/wire.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/wire.py b/examples/wire.py index 7ee4000..ce9cfe7 100755 --- a/examples/wire.py +++ b/examples/wire.py @@ -21,11 +21,11 @@ args = parser.parse_args() try: import sounddevice as sd - callback_status = sd.CallbackFlags() + cumulated_status = sd.CallbackFlags() def callback(indata, outdata, frames, time, status): - global callback_status - callback_status |= status + global cumulated_status + cumulated_status |= status outdata[:] = indata with sd.Stream(device=(args.input_device, args.output_device), @@ -37,8 +37,8 @@ try: print("#" * 80) input() - if callback_status: - logging.warning(str(callback_status)) + if cumulated_status: + logging.warning(str(cumulated_status)) except KeyboardInterrupt: parser.exit('\nInterrupted by user') except Exception as e: |
