Interface AudioRenderCallback
public interface AudioRenderCallback
Supplies the samples an
AudioOutputPeer plays. Implemented by
AudioContext; ports call it from their audio thread.-
Method Summary
Modifier and TypeMethodDescriptionvoidrender(float[] interleaved, int frames, int channels) Fillsinterleavedwithframesframes ofchannelsinterleaved float samples in the range -1 to 1.
-
Method Details
-
render
void render(float[] interleaved, int frames, int channels) Fills
interleavedwithframesframes ofchannelsinterleaved float samples in the range -1 to 1. Called on the port's audio thread; it must return quickly and never block.Parameters
-
interleaved: the buffer to fill, at leastframes * channelslong -
frames: the number of frames wanted -
channels: the number of interleaved channels
-
-