Monitoring audio streams

Lacks documentation!

Created on Sat Jun 27 20:25:33 2020

@author: João Vitor Gutkoski Paes

class ossom.Monitor(target: callable = <function Monitor.<lambda>>, samplerate: int = 48000, waittime: float = 1.0, args: tuple = (0, ))[source]

Monitor class.

__init__(target: callable = <function Monitor.<lambda>>, samplerate: int = 48000, waittime: float = 1.0, args: tuple = (0, ))[source]

Control a multiprocessing.Process to visualize data from recording or playing.

Parameters:
  • target (callable, optional) – DESCRIPTION. The default is None.
  • args (tuple, optional) – DESCRIPTION. The default is None.
Returns:

Return type:

None.

__call__(strm: Union[ossom.streamer.Recorder, ossom.streamer.Player] = None, blocksize: int = None)[source]

Configure the monitor and starts de process.

Parameters:
  • strm (Union[Recorder, Player], optional) – DESCRIPTION. The default is None.
  • buffersize (int, optional) – DESCRIPTION. The default is None.
Returns:

Return type:

None.

setup()[source]

Any setup step needed to the end monitoring object. Must be overriden on subclasses.

tear_down()[source]

Any destroying step needed to finish the end monitoring object. Must be overriden on subclasses.

start()[source]

Start the parallel process.

wait()[source]

Finish the parallel process.