beautypg.com

S2253_getaudioencoding, S2253_setaudiobitrate – Sensoray 2253 Windows User Manual

Page 32

background image

Sets the audio encoding type. This setting only applies to files recorded with
audio with stream types of UYVY, MJPEG or Y800. The audio encoding for files
recorded as MPEG4 or H264 will always be AAC. This function has no effect if
the stream is set to MPEG4 or H264.
aenc

MID2253_AUDENC_PCM, MID2253_AUDENC_G711_ULAW,
MID2253_AUDENC_G711_ALAW.

devid

device id in the system (use 0 with a single board installed).

strmidx

stream index (0 or 1).

S2253_GetAudioEncoding

MID2253_API int __stdcall S2253_GetAudioEncoding (

MID2253_AUDENC

*aenc,

int

devid,

int

strmidx);

Returns current audio encoding setting.
aenc

MID2253_AUDENC_PCM, MID2253_AUDENC_G711_ULAW,
MID2253_AUDENC_G711_ALAW.

devid

device id in the system (use 0 with a single board installed).

strmidx

stream index (0 or 1).

S2253_SetAudioBitrate

MID2253_API int __stdcall S2253_SetAudioBitrate (

MID2253_AUDIO_BITRATE

audbr,

int

devid,

int

strmidx);

Sets the audio encoding bitrate. This setting only applies to files recorded with
AAC audio. The audio encoding must be set before the stream is started. On
the fly changes are not supported.
audbr

MID2253_AUDBR_96 (96kbps), MID2253_AUDBR_128 (128kbps),
MID2253_AUDBR_192 (192kbps), MID2253_AUDBR_224 (224kbps),
MID2253_AUDBR_256 (256kbps).

32

This manual is related to the following products: