pushInputData

fun pushInputData(src: FloatArray, channels: Int, samples: Int, samplingRate: Int): Int

Pushes the audio waveform to the queue.

It is not necessary to input the whole audio data at once, it is possible to feed it little by little, so that it can be used in real-time with the input from a microphone.

Return

0 if successful, otherwise an error code.

Parameters

src

Audio waveform (PCM in the range -1.0 to 1.0, interleaved when multi channel).

channels

Number of channels.

samples

Number of samples per channel.

samplingRate

Sampling rate in Hz.