![]() |
Photon Voice
v2.7
|
Framer< T > Class Template Reference
Utility class to re-frame audio packets. More...
Public Member Functions | |
Framer (int frameSize) | |
Create new Framer instance. More... | |
int | Count (int bufLen) |
Get the number of frames available after adding bufLen samples. More... | |
IEnumerable< T[]> | Frame (T[] buf) |
Append arbitrary-sized buffer and return available full frames. More... | |
Detailed Description
Utility class to re-frame audio packets.
Constructor & Destructor Documentation
Member Function Documentation
int Count | ( | int | bufLen | ) |
Get the number of frames available after adding bufLen samples.
- Parameters
-
bufLen Number of samples that would be added.
- Returns
- Number of full frames available when adding bufLen samples.
IEnumerable<T[]> Frame | ( | T[] | buf | ) |
Append arbitrary-sized buffer and return available full frames.
- Parameters
-
buf Array of samples to add.
- Returns
- Enumerator of full frames (might be none).