#include <Framer.h>

Public Member Functions

 Framer ()
 
virtual ~Framer ()
 
void setSource (double *src, int64_t length)
 
void configure (int frameLength, int hop)
 
int getMaxNoFrames ()
 
void getFrame (double *dst)
 
void resetCounters ()
 

Private Attributes

int64_t m_sampleLen
 
int m_framesRead
 
double * m_srcBuffer
 
double * m_dataFrame
 
double * m_strideFrame
 
int m_frameLength
 
int m_stepSize
 
int m_maxFrames
 
int64_t m_srcIndex
 

Detailed Description

Definition at line 21 of file Framer.h.

Constructor & Destructor Documentation

Framer::Framer ( )

Definition at line 20 of file Framer.cpp.

Framer::~Framer ( )
virtual

Definition at line 33 of file Framer.cpp.

References m_dataFrame, and m_strideFrame.

Member Function Documentation

void Framer::setSource ( double *  src,
int64_t  length 
)

Definition at line 92 of file Framer.cpp.

References m_maxFrames, m_sampleLen, m_srcBuffer, and m_stepSize.

Referenced by TempoTrack::process().

void Framer::configure ( int  frameLength,
int  hop 
)

Definition at line 39 of file Framer.cpp.

References m_dataFrame, m_frameLength, m_stepSize, m_strideFrame, and resetCounters().

Referenced by TempoTrack::initialise().

int Framer::getMaxNoFrames ( )

Definition at line 87 of file Framer.cpp.

References m_maxFrames.

Referenced by TempoTrack::process().

void Framer::getFrame ( double *  dst)

Definition at line 53 of file Framer.cpp.

References m_frameLength, m_framesRead, m_sampleLen, m_srcBuffer, m_srcIndex, and m_stepSize.

Referenced by TempoTrack::process().

void Framer::resetCounters ( )

Definition at line 81 of file Framer.cpp.

References m_framesRead, and m_srcIndex.

Referenced by configure().

Member Data Documentation

int64_t Framer::m_sampleLen
private

Definition at line 36 of file Framer.h.

Referenced by getFrame(), and setSource().

int Framer::m_framesRead
private

Definition at line 37 of file Framer.h.

Referenced by getFrame(), and resetCounters().

double* Framer::m_srcBuffer
private

Definition at line 39 of file Framer.h.

Referenced by getFrame(), and setSource().

double* Framer::m_dataFrame
private

Definition at line 40 of file Framer.h.

Referenced by configure(), and ~Framer().

double* Framer::m_strideFrame
private

Definition at line 41 of file Framer.h.

Referenced by configure(), and ~Framer().

int Framer::m_frameLength
private

Definition at line 42 of file Framer.h.

Referenced by configure(), and getFrame().

int Framer::m_stepSize
private

Definition at line 43 of file Framer.h.

Referenced by configure(), getFrame(), and setSource().

int Framer::m_maxFrames
private

Definition at line 45 of file Framer.h.

Referenced by getMaxNoFrames(), and setSource().

int64_t Framer::m_srcIndex
private

Definition at line 47 of file Framer.h.

Referenced by getFrame(), and resetCounters().


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