kwave
18.07.70
|
#include <CurveStreamAdapter.h>
Signals | |
void | output (Kwave::SampleArray data) |
![]() | |
void | attributeChanged (const QVariant value) |
Public Member Functions | |
CurveStreamAdapter (Kwave::Curve &curve, sample_index_t length) | |
virtual | ~CurveStreamAdapter () Q_DECL_OVERRIDE |
virtual void | goOn () Q_DECL_OVERRIDE |
![]() | |
SampleSource (QObject *parent=Q_NULLPTR) | |
virtual | ~SampleSource () |
virtual bool | done () const |
![]() | |
StreamObject (QObject *parent=Q_NULLPTR) | |
virtual | ~StreamObject () |
virtual unsigned int | tracks () const |
virtual Kwave::StreamObject * | operator[] (unsigned int track) |
virtual unsigned int | tracksOfPort (const char *port) const |
virtual Kwave::StreamObject * | port (const char *port, unsigned int track) |
virtual unsigned int | blockSize () const |
void | setAttribute (const char *attribute, const QVariant &value) |
Private Attributes | |
sample_index_t | m_position |
sample_index_t | m_length |
Kwave::Interpolation & | m_interpolation |
Kwave::SampleArray | m_buffer |
Additional Inherited Members | |
![]() | |
static void | setInteractive (bool interactive) |
Definition at line 31 of file CurveStreamAdapter.h.
Kwave::CurveStreamAdapter::CurveStreamAdapter | ( | Kwave::Curve & | curve, |
sample_index_t | length | ||
) |
Constructor.
curve | the curve from which we take the interpolation |
length | number of samples of the interpolated range |
Definition at line 21 of file CurveStreamAdapter.cpp.
|
virtual |
|
virtual |
Implements Kwave::SampleSource.
Definition at line 36 of file CurveStreamAdapter.cpp.
References Kwave::StreamObject::blockSize(), double2sample(), m_buffer, m_interpolation, m_length, m_position, output(), and Kwave::Interpolation::singleInterpolation().
Referenced by Kwave::AmplifyFreePlugin::run(), and Kwave::PlayBackPlugin::run().
|
signal |
emits a block with the interpolated curve
Referenced by goOn().
|
private |
array with the interpolated curve data
Definition at line 66 of file CurveStreamAdapter.h.
Referenced by goOn().
|
private |
|
private |
number of samples of the interpolated area
Definition at line 60 of file CurveStreamAdapter.h.
Referenced by goOn().
|
private |
position within the interpolation
Definition at line 57 of file CurveStreamAdapter.h.
Referenced by goOn().