IAudioPusher that provides a constant tone signal.
More...
Inherits AudioUtil.GeneratorPusher< T >.
|
| ToneAudioPusher (int frequency=440, int bufSizeMs=100, int samplingRate=48000, int channels=1) |
| Create a new ToneAudioReader instance More...
|
|
| 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 () |
|
|
override int | Gen (T[] buf, long timeSamples) |
|
|
long | timeSamples |
|
int | Channels [get] |
|
int | SamplingRate [get] |
|
string | Error [get] |
|
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...
|
|
IAudioPusher that provides a constant tone signal.
◆ ToneAudioPusher()
ToneAudioPusher |
( |
int |
frequency = 440 , |
|
|
int |
bufSizeMs = 100 , |
|
|
int |
samplingRate = 48000 , |
|
|
int |
channels = 1 |
|
) |
| |
Create a new ToneAudioReader instance
- Parameters
-
frequency | Frequency of the generated tone (in Hz). |
bufSizeMs | Size of buffers to push (in milliseconds). |
samplingRate | Sampling rate of the audio signal (in Hz). |
channels | Number of channels in the audio signal. |