pyoperant.interfaces.pyaudio_ module¶
-
class
pyoperant.interfaces.pyaudio_.
PyAudioInterface
(device_name='default', *args, **kwargs)[source]¶ Bases:
pyoperant.interfaces.base_.BaseInterface
Class which holds information about an audio device
assign a simple callback function that will execute on each frame presentation by writing interface.callback
interface.callback() should return either True (to continue playback) or False (to terminate playback)
Before assigning any callback function, please read the following: https://www.assembla.com/spaces/portaudio/wiki/Tips_Callbacks