@Deprecated public interface AudioSignal
AudioSignalinterface. Your only responsibility is to fill either a single float buffer or two float buffers with values in the range of [-1, 1]. The
AudioOutputto which you add your signal will handle the mixing of multiple signals. There may be values in the arrays when you receive them, left over from the previous signal in a
SignalChain, but you can disregard them (or use them if you're feeling crazy like that).
|Modifier and Type||Method and Description|
void generate(float signal)
signalwith values in the range of [-1, 1].
signalrepresents a mono audio signal.
signal- the float array to fill
void generate(float left, float right)
rightwith values in the range of [-1, 1].
leftrepresents the left channel of a stereo signal,
rightrepresents the right channel of that same stereo signal.
left- the left channel
right- the right channel