async: remove AsyncWriter

we are not expecting real-time problems on the sender's side.
This commit is contained in:
Roman Zeyde
2015-02-04 18:07:25 +02:00
parent 1b64e2874a
commit 6a35820155
4 changed files with 2 additions and 90 deletions

View File

@@ -70,8 +70,7 @@ def FileType(mode, audio_interface=None):
s = audio_interface.recorder()
return async.AsyncReader(stream=s, bufsize=s.bufsize)
if 'w' in mode:
s = audio_interface.player()
return async.AsyncWriter(stream=s)
return audio_interface.player()
if fname == '-':
if 'r' in mode:
@@ -208,6 +207,7 @@ def _main():
except KeyboardInterrupt:
pass
finally:
log.debug('Closing input and output')
args.src.close()
args.dst.close()