Frames a stream supplies on demand: RGBA pixels and 48 kHz stereo f32 PCM.
Limits: the picture is exactly width × height × 4 bytes and at most
4 MiB (1280×720 fits, 1920×1080 does not: lower the resolution, the
player scales it). Every sample is finite and within −1…1; clamp your
own mix. A frame that breaks a limit ends the stream with invalid
(openStream rejects, or Stream.onStop gets the error).
The SDK copies the frame once before frame() is called again, so you
may reuse the same buffers for every frame.
Interleaved stereo samples at 48 kHz for this frame's duration (an even
length, any number of frames; the SDK sends them in packets of at most
4800). Each sample finite, −1…1.
Frames a stream supplies on demand: RGBA pixels and 48 kHz stereo f32 PCM.
Limits: the picture is exactly
width × height × 4bytes and at most 4 MiB (1280×720 fits, 1920×1080 does not: lower the resolution, the player scales it). Every sample is finite and within −1…1; clamp your own mix. A frame that breaks a limit ends the stream withinvalid(openStreamrejects, or Stream.onStop gets the error).The SDK copies the frame once before
frame()is called again, so you may reuse the same buffers for every frame.Since
1.0.0