next up previous contents
Next: 6.28 wifi Up: 6. Device Interfaces Previous: 6.26 truth   Contents

Subsections


6.27 waveform

Synopsis

The waveform interface is used to receive arbitrary digital samples, say from a digital audio device.

Data



struct player_waveform_data : The waveform interface reads a digitized waveform from the target device.

uint32_t rate;
Bit rate - bits per second

uint16_t depth;
Depth - bits per sample

uint32_t samples;
Samples - the number of bytes of raw data

uint8_t data[ PLAYER_WAVEFORM_DATA_MAX ];
data - an array of raw data



2004-06-02