LASP 1.0
Library for Acoustic Signal Processing
Loading...
Searching...
No Matches
lasp.lasp_playback.Playback Class Reference

Play back a single channel from a. More...

Public Member Functions

 __init__ (self, fn1, channel=0, video=False, verbose=True)
 Initialize a Playback class for playing back audio.
 
 T (self)
 Returns the lenght of the measurement in seconds.
 
 start (self)
 Start the playback.
 
 audio_callback (self, outdata, frames, time, status)
 
 video_thread_fcn (self)
 

Public Attributes

 channel
 
 samplerate
 
 nchannels
 
 blocksize
 
 nblocks
 

Protected Attributes

 _fn
 
 _video
 
 _aframectr
 
 _running
 
 _running_cond
 
 _video_queue
 
 _video_frame_positions
 
 _ad
 
 _vd
 

Detailed Description

Play back a single channel from a.

Definition at line 15 of file lasp_playback.py.

Constructor & Destructor Documentation

◆ __init__()

lasp.lasp_playback.Playback.__init__ (   self,
  fn1,
  channel = 0,
  video = False,
  verbose = True 
)

Initialize a Playback class for playing back audio.

Args: fn1: Filename of the measurement file channel: channel index to play back video: if True and video is available in the measurement file, video will also be shown verbose: print out status messages to stdout

Definition at line 20 of file lasp_playback.py.

Member Function Documentation

◆ audio_callback()

lasp.lasp_playback.Playback.audio_callback (   self,
  outdata,
  frames,
  time,
  status 
)

Definition at line 107 of file lasp_playback.py.

◆ start()

lasp.lasp_playback.Playback.start (   self)

Start the playback.

Definition at line 76 of file lasp_playback.py.

◆ T()

lasp.lasp_playback.Playback.T (   self)

Returns the lenght of the measurement in seconds.

Definition at line 69 of file lasp_playback.py.

◆ video_thread_fcn()

lasp.lasp_playback.Playback.video_thread_fcn (   self)

Definition at line 120 of file lasp_playback.py.

Member Data Documentation

◆ _ad

lasp.lasp_playback.Playback._ad
protected

Definition at line 81 of file lasp_playback.py.

◆ _aframectr

lasp.lasp_playback.Playback._aframectr
protected

Definition at line 42 of file lasp_playback.py.

◆ _fn

lasp.lasp_playback.Playback._fn
protected

Definition at line 38 of file lasp_playback.py.

◆ _running

lasp.lasp_playback.Playback._running
protected

Definition at line 43 of file lasp_playback.py.

◆ _running_cond

lasp.lasp_playback.Playback._running_cond
protected

Definition at line 44 of file lasp_playback.py.

◆ _vd

lasp.lasp_playback.Playback._vd
protected

Definition at line 92 of file lasp_playback.py.

◆ _video

lasp.lasp_playback.Playback._video
protected

Definition at line 41 of file lasp_playback.py.

◆ _video_frame_positions

lasp.lasp_playback.Playback._video_frame_positions
protected

Definition at line 62 of file lasp_playback.py.

◆ _video_queue

lasp.lasp_playback.Playback._video_queue
protected

Definition at line 46 of file lasp_playback.py.

◆ blocksize

lasp.lasp_playback.Playback.blocksize

Definition at line 51 of file lasp_playback.py.

◆ channel

lasp.lasp_playback.Playback.channel

Definition at line 40 of file lasp_playback.py.

◆ nblocks

lasp.lasp_playback.Playback.nblocks

Definition at line 52 of file lasp_playback.py.

◆ nchannels

lasp.lasp_playback.Playback.nchannels

Definition at line 50 of file lasp_playback.py.

◆ samplerate

lasp.lasp_playback.Playback.samplerate

Definition at line 49 of file lasp_playback.py.


The documentation for this class was generated from the following file: