From cc654c9b7a68d78c5b34dc3a70beb662143c27b5 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sun, 13 Mar 2016 12:22:16 +0100 Subject: DOC: Rename status variables to cumulated_status --- examples/wire.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/wire.py') 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: -- cgit v1.2.3