Skip to main content

Module streaming

Module streaming 

Source
Expand description

StreamingSource โ€” a Read+Seek adapter over a shared, incrementally-filled byte buffer.

The download thread writes chunks into a StreamBuffer while the Symphonia decoder reads from a StreamingSource backed by the same buffer. The source blocks briefly when the read position catches up to the write head, enabling true streaming decode without waiting for the full download to complete.

Structsยง

StreamBuffer
A shared, growable byte buffer that the download thread writes into.
StreamingSource
A Read + Seek view into a StreamBuffer.