Photon Voice
v2.58
Sample-rate conversion Audio Processor. More...
Inherits IProcessor< T >.
Public Member Functions | |
| Resampler (int dstSize, int channels) | |
| Create a new Resampler instance. More... | |
| T[] | Process (T[] buf) |
| Process a frame of data. More... | |
| void | Dispose () |
Protected Attributes | |
| T[] | frameResampled |
Sample-rate conversion Audio Processor.
This processor converts the sample-rate of the source stream. Internally, it uses AudioUtil.Resample<T>(T[], T[], int, int).
| Resampler | ( | int | dstSize, |
| int | channels | ||
| ) |
Create a new Resampler instance.
| dstSize | Frame size of a destination frame. Determins output rate. |
| channels | Number of audio channels expected in both in- and output. |
| T [] Process | ( | T[] | buf | ) |
Process a frame of data.
| buf | Buffer containing input data |
Implements IProcessor< T >.