TimeSamplesPlayback¶
- class spectacoular.lprocess.TimeSamplesPlayback(*args, **kwargs)¶
Bases:
TimeOut
,BaseSpectacoular
Naive class implementation to allow audio playback of .h5 file contents.
The class uses the devices available to the sounddevice library for audio playback. Input and output devices can be listed by
>>> import sounddevice >>> sounddevice.query_devices()
In the future, this class should work in buffer mode and also write the current frame that is played to a class attribute.
- channels = List(int, …¶
list containing indices of the channels to be played back.
- device = Property()¶
two-element list containing indices of input and output device to be used for audio playback.
- stop()¶
method stops audio playback of file content
- result(num)¶
simple generator that yields the output block-wise.