DS
mm_stream

Back to Index

Definition

typedef struct t_mmstream
{
    mm_word sampling_rate;
    mm_word buffer_length;
    mm_stream_func callback;
    mm_stream_formats format;
    mm_stream_timer timer;
    mm_bool manual;
} mm_stream;

Members

sampling_rate

Sampling rate of the stream, measured in Hertz.

buffer_length

Amount of samples to buffer. Should be a multiple of 16.

callback

Function pointer to your routine to fill the stream.

format

Sample data format.

timer

Hardware timer selection. (will be used for timing the data requests)

manual

Disable automatic fill requests.

Description

Information about a stream to be opened.

More about manual: If this is set, then you must call mmStreamUpdate periodically to push data into the stream buffer (mmStreamUpdate makes requests to your callback function to fill the stream). Manual mode can be used to have control over when the stream is filled.

See Also

mmStreamOpen