Photon Voice v2.53

Public Member Functions | Protected Attributes | List of all members
FramerResampler< T > Class Template Reference

Inherits Framer< T >.

Public Member Functions

 FramerResampler (int frameSize, int channels, int resampleNum, int resampleDen, bool interpolate)
 
override IEnumerable< T[]> Frame (T[] bufT)
 Append arbitrary-sized buffer and return available full frames. More...
 
- Public Member Functions inherited from Framer< T >
 Framer (int frameSize)
 Create new Framer instance. More...
 

Protected Attributes

bool TisFloat
 
bool interpolate
 
int channels
 
int resampleNum
 
int resampleDen
 
float resampleRatioInv
 
int delta
 
- Protected Attributes inherited from Framer< T >
T[] frame
 
int sizeofT
 
int framePos = 0
 

Member Function Documentation

◆ Frame()

override IEnumerable<T[]> Frame ( T[]  buf)
virtual

Append arbitrary-sized buffer and return available full frames.

Parameters
bufArray of samples to add.
Returns
Enumerator of full frames (might be none).

Reimplemented from Framer< T >.