beautypg.com

Sensoray 2250 Linux Ver2.0.X User Manual

Page 14

background image

0 on success, negative value if error

int SN_Polling(

int board)

);

Sets the SDK to return immediately on calls to SN_GetAudioData and
SN_GetOneFrame.

Parameters

board

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

Returns
0 on success, negative value if error

int SN_Blocking(

int board)

);

Sets the SDK to return block(up to one second) on calls to SN_GetAudioData and
SN_GetOneFrame.

Parameters

board

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

Returns
0 on success, negative value if error

int SN_SetSeqMode(

int board,

int seqmode)

);

Advanced use only. Sensoray is not responsible for invalid combinations of sequence
mode and gop size(see SN_SetGopSize). SN_SetSeqMode will try to determine if the

setting is valid and return -EINVAL if the sequence is invalid. The following are allowed
settings of sequence mode and gop size.

1) If you change seq_mode = 2, you must set GOP_SIZE to be from 2-15

2) If you change seq_mode = 3, you must set GOP_SIZE to a multiple of 3 up to 15

for MPEG1/MPEG2, and up to 30 for MPEG4_DIVX.

3) If you change seq_mode =1(IFrames only), you should leave GOP_SIZE

unchanged. Alternatively, IFrame only mode can be set through
SN_SetBasicChipSettings.

1

This manual is related to the following products: