Photon Voice: AudioUtil.Resampler< T > Class Template Reference

Photon Voice

AudioUtil.Resampler< T > Class Template Reference

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 audio data. More...
 
void Dispose ()
 

Protected Attributes

T[] frameResampled
 

Detailed Description

Sample-rate conversion Audio Processor.

This processor converts the sample-rate of the source stream. Internally, it uses AudioUtil.Resample.

Constructor & Destructor Documentation

Resampler ( int  dstSize,
int  channels 
)

Create a new Resampler instance.

Parameters
dstSizeFrame size of a destination frame. Determins output rate.
channelsNumber of audio channels expected in both in- and output.

Member Function Documentation

T [] Process ( T[]  buf)

Process a frame of audio data.

Parameters
bufBuffer containing input audio data
Returns
Buffer containing output audio data

Implements IProcessor< T >.

Online Documentation  -  Dashboard  -  Support Forum Exit Games GmbH