beautypg.com

Sensoray 2250 Linux Ver2.0.X User Manual

Page 13

background image

unsigned char *pBuf,

int*buflen

);

Gets audio samples. Call with buflen set to size of sample requested. Returns actual

size of samples. See sraydemo.c for an example of SN_GetAudioData.

Parameters

board

board number in the system (use 0 for single board setups).

pBuf

pointer to buffer to get samples
buflen

length of buffer
Returns

0 on success, negative value if error

int SN_GetAudioDataPlusTime(

int board,

UINT8 *pBuf,

SINT32*buflen,

int *tv_sec,

int *tv_usec,

);

Gets audio samples plus timestamp. Call with buflen set to size of sample requested.

Returns actual size of samples. Also returns audio timestamp in tv_sec and tv_usec.

Parameters

board

board number in the system (use 0 for single board setups).

pBuf

pointer to buffer to get samples
buflen

length of buffer
tv_sec

returned timestamp in seconds
tv_usec

returned microsecond component of timestamp
Returns

1

This manual is related to the following products: