public readFrames(maximum as Long = 4096l) as AudioClip
Decodes at most maximum frames, with an upper bound of 65536 per call. Returns an empty clip at EOF or for maximum=0. No read-ahead task is started; callers can cancel between reads and retain or discard individual blocks. The frame cursor advances only after a complete block decodes successfully.
| Parameter | Description |
|---|---|
maximum | Non-negative requested frame count, capped at 65536. |
Independent interleaved PCM at the original rate/channel count.
block = reader.readFrames(4096l)