Photon Voice v2.53

Public Member Functions | Protected Member Functions | Properties | List of all members
AudioUtil.WaveformAudioPusher< T > Class Template Reference

IAudioPusher that provides the given waveform. More...

Inherits AudioUtil.GeneratorPusher< T >.

Public Member Functions

 WaveformAudioPusher (int bufSizeMs=100, int samplingRate=48000, int channels=1)
 
- Public Member Functions inherited from AudioUtil.GeneratorPusher< T >
 GeneratorPusher (int bufSizeMs=100, int samplingRate=48000, int channels=1)
 
void SetCallback (Action< T[]> callback, ObjectFactory< T[], int > bufferFactory)
 Set the callback function used for pushing data More...
 
void Dispose ()
 

Protected Member Functions

override int Gen (T[] buf, long timeSamples)
 

Properties

T[] Waveform [set]
 
- Properties inherited from AudioUtil.GeneratorPusher< T >
int Channels [get]
 
int SamplingRate [get]
 
string Error [get]
 
- Properties inherited from IAudioDesc
int SamplingRate [get]
 Sampling rate of the audio signal (in Hz). More...
 
int Channels [get]
 Number of channels in the audio signal. More...
 
string Error [get]
 If not null, audio object is in invalid state. More...
 

Additional Inherited Members

- Protected Attributes inherited from AudioUtil.GeneratorPusher< T >
long timeSamples
 

Detailed Description

IAudioPusher that provides the given waveform.