mirror of
https://github.com/romanz/amodem.git
synced 2026-03-20 17:39:30 +08:00
audio: return self from Interface.load()
This commit is contained in:
@@ -15,7 +15,7 @@ def test():
|
||||
lib.Pa_OpenStream.return_value = 0
|
||||
cdll.return_value = lib
|
||||
interface = audio.Interface(config=config.fastest(), debug=True)
|
||||
interface.load(name='portaudio')
|
||||
assert interface.load(name='portaudio') is interface
|
||||
with interface:
|
||||
s = interface.player()
|
||||
assert s.params.device == 1
|
||||
|
||||
Reference in New Issue
Block a user