diff options
Diffstat (limited to 'examples/wire.py')
| -rwxr-xr-x | examples/wire.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/examples/wire.py b/examples/wire.py index a980d7f..ad9e3a5 100755 --- a/examples/wire.py +++ b/examples/wire.py @@ -16,16 +16,16 @@ def int_or_str(text): return text parser = argparse.ArgumentParser(description=__doc__) -parser.add_argument("-i", "--input-device", type=int_or_str, - help="input device ID or substring") -parser.add_argument("-o", "--output-device", type=int_or_str, - help="output device ID or substring") -parser.add_argument("-c", "--channels", type=int, default=2, - help="number of channels") -parser.add_argument("-t", "--dtype", help="audio data type") -parser.add_argument("-s", "--samplerate", type=float, help="sampling rate") -parser.add_argument("-b", "--blocksize", type=int, help="block size") -parser.add_argument("-l", "--latency", type=float, help="latency in seconds") +parser.add_argument('-i', '--input-device', type=int_or_str, + help='input device ID or substring') +parser.add_argument('-o', '--output-device', type=int_or_str, + help='output device ID or substring') +parser.add_argument('-c', '--channels', type=int, default=2, + help='number of channels') +parser.add_argument('-t', '--dtype', help='audio data type') +parser.add_argument('-s', '--samplerate', type=float, help='sampling rate') +parser.add_argument('-b', '--blocksize', type=int, help='block size') +parser.add_argument('-l', '--latency', type=float, help='latency in seconds') args = parser.parse_args() try: @@ -42,9 +42,9 @@ try: samplerate=args.samplerate, blocksize=args.blocksize, dtype=args.dtype, latency=args.latency, channels=args.channels, callback=callback): - print("#" * 80) - print("press Return to quit") - print("#" * 80) + print('#' * 80) + print('press Return to quit') + print('#' * 80) input() if cumulated_status: |
