mirror of
https://github.com/romanz/amodem.git
synced 2026-02-24 16:18:12 +08:00
amodem: disable PortAudio when I/O is redirected
This commit is contained in:
@@ -236,7 +236,11 @@ def _main():
|
||||
from . import alsa
|
||||
interface = alsa.Interface(config)
|
||||
elif args.audio_library == '-':
|
||||
interface = _Dummy()
|
||||
interface = _Dummy() # manually disable PortAudio
|
||||
elif args.command == 'send' and args.output is not None:
|
||||
interface = _Dummy() # redirected output
|
||||
elif args.command == 'recv' and args.input is not None:
|
||||
interface = _Dummy() # redirected input
|
||||
else:
|
||||
interface = audio.Interface(config)
|
||||
interface.load(args.audio_library)
|
||||
|
||||
Reference in New Issue
Block a user