public interface AudioSignal
AudioSignal interface. Your only responsibility
is to fill either a single float buffer or two float buffers with values in
the range of [-1, 1]. The AudioOutput to 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)
Fills
signal with values in the range of [-1, 1]. |
void |
generate(float[] left,
float[] right)
Fills
left and right with values in the range
of [-1, 1]. |
void generate(float[] signal)
signal with values in the range of [-1, 1].
signal represents a mono audio signal.signal - the float array to fillvoid generate(float[] left,
float[] right)
left and right with values in the range
of [-1, 1]. left represents the left channel of a stereo
signal, right represents the right channel of that same
stereo signal.left - the left channelright - the right channel