Photon Voice v2.53

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

Utility class to re-frame packets. More...

Inherited by FramerResampler< T >.

Public Member Functions

 Framer (int frameSize)
 Create new Framer instance. More...
 
virtual IEnumerable< T[]> Frame (T[] buf)
 Append arbitrary-sized buffer and return available full frames. More...
 

Protected Attributes

T[] frame
 
int sizeofT
 
int framePos = 0
 

Detailed Description

Utility class to re-frame packets.

Constructor & Destructor Documentation

◆ Framer()

Framer ( int  frameSize)

Create new Framer instance.

Member Function Documentation

◆ Frame()

virtual 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 in FramerResampler< T >.