view yetilab/stream/streamtype.yeti @ 173:2cb4c78d42db

Another test
author Chris Cannam
date Thu, 02 May 2013 17:38:23 +0100
parents 073641eba879
children 3f4f3af724b0
line wrap: on
line source

module yetilab.stream.streamtype;

typedef stream =
    {
        position is number,
        channels is number,
        sampleRate is number,
        available is Known number | Unknown () | Infinite (),
        finished? is boolean,
        read is number -> 'a, // actually a matrix
        close is () -> (),
    };

();