Noatun API Documentation

MonoScope Class Reference

#include <plugin.h>

Inheritance diagram for MonoScope:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 MonoScope (int timeout=250, int pid=0)
virtual void scopeEvent (float *data, int len)
void scopeData (std::vector< float > *&data)
virtual void timeout ()
virtual int samples () const
virtual void setSamples (int)

Detailed Description

An easy to use scope visualization, mono version. Note: Of course this one also works for audio with more than one channel You certainly want to reimplement scopeEvent()

Definition at line 305 of file plugin.h.


Member Function Documentation

virtual int MonoScope::samples  )  const [virtual]
 

the "width" of each scopeEvent

Implements Scope.

void MonoScope::scopeData std::vector< float > *&  data  ) 
 

get the current data pass a vector<float>*, this will do the rest. do not allocate it beforehand. you must then delete the vectors

Returns:
the amount of elements for both left and right

virtual void MonoScope::scopeEvent float *  data,
int  len
[inline, virtual]
 

called according to the timeout the float contains the data, with len items you override this yourself, and process the data

Definition at line 316 of file plugin.h.

virtual void MonoScope::timeout  )  [virtual]
 

reimplemented from class Visualization, you should never need to reimplement this yourself

Implements Visualization.


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for Noatun 2.6.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Oct 21 23:49:47 2004 by doxygen 1.3.8-20040913 written by Dimitri van Heesch, © 1997-2003