f=blockread(L)
L | Number of samples. |
f | Samples. |
valid | Input data valid flag. |
f=blockread(L) reads next L audio samples according to source specified in block. f is a \(\L\times W\) matrix, where columns are channels in the stream.
[f,valid]=blockrad(...) does the same and in addition it returns valid flag, which is set to 1, except for the last block of the stream (e.g. at the end of a file).
Function also control the playback, so it does not have to rely on whether the user called blockplay.
Block streaming uses several buffers to compensate for the processing delay variation.