qm-dsp  1.8
Framer Class Reference

#include <Framer.h>

Public Member Functions

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

Private Attributes

unsigned long m_ulSampleLen
 
unsigned int m_framesRead
 
double * m_srcBuffer
 
double * m_dataFrame
 
double * m_strideFrame
 
unsigned int m_frameLength
 
unsigned int m_stepSize
 
unsigned int m_maxFrames
 
unsigned long m_ulSrcIndex
 

Detailed Description

Definition at line 24 of file Framer.h.

Constructor & Destructor Documentation

◆ Framer()

Framer::Framer ( )

Definition at line 23 of file Framer.cpp.

References m_dataFrame, m_strideFrame, and NULL.

◆ ~Framer()

Framer::~Framer ( )
virtual

Definition at line 29 of file Framer.cpp.

References m_dataFrame, m_strideFrame, and NULL.

Member Function Documentation

◆ setSource()

void Framer::setSource ( double *  src,
unsigned int  length 
)

Definition at line 103 of file Framer.cpp.

References m_maxFrames, m_srcBuffer, m_stepSize, and m_ulSampleLen.

Referenced by TempoTrack::process().

◆ getMaxNoFrames()

unsigned int Framer::getMaxNoFrames ( )

Definition at line 98 of file Framer.cpp.

References m_maxFrames.

Referenced by TempoTrack::process().

◆ getFrame()

void Framer::getFrame ( double *  dst)

Definition at line 60 of file Framer.cpp.

References m_frameLength, m_framesRead, m_srcBuffer, m_stepSize, m_ulSampleLen, and m_ulSrcIndex.

Referenced by TempoTrack::process().

◆ configure()

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

Definition at line 38 of file Framer.cpp.

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

Referenced by TempoTrack::initialise().

◆ resetCounters()

void Framer::resetCounters ( )

Definition at line 92 of file Framer.cpp.

References m_framesRead, and m_ulSrcIndex.

Referenced by configure().

Member Data Documentation

◆ m_ulSampleLen

unsigned long Framer::m_ulSampleLen
private

Definition at line 38 of file Framer.h.

Referenced by getFrame(), and setSource().

◆ m_framesRead

unsigned int Framer::m_framesRead
private

Definition at line 39 of file Framer.h.

Referenced by getFrame(), and resetCounters().

◆ m_srcBuffer

double* Framer::m_srcBuffer
private

Definition at line 41 of file Framer.h.

Referenced by getFrame(), and setSource().

◆ m_dataFrame

double* Framer::m_dataFrame
private

Definition at line 42 of file Framer.h.

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

◆ m_strideFrame

double* Framer::m_strideFrame
private

Definition at line 43 of file Framer.h.

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

◆ m_frameLength

unsigned int Framer::m_frameLength
private

Definition at line 44 of file Framer.h.

Referenced by configure(), and getFrame().

◆ m_stepSize

unsigned int Framer::m_stepSize
private

Definition at line 45 of file Framer.h.

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

◆ m_maxFrames

unsigned int Framer::m_maxFrames
private

Definition at line 47 of file Framer.h.

Referenced by getMaxNoFrames(), and setSource().

◆ m_ulSrcIndex

unsigned long Framer::m_ulSrcIndex
private

Definition at line 49 of file Framer.h.

Referenced by getFrame(), and resetCounters().


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