This is where navigation should be.

BLOCKREAD - Read one block from input

Usage

f=blockread(L)

Input parameters

L Number of samples.

Output parameters

f Samples.
valid Input data valid flag.

Description

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.