Flix2_getframeserver, Flix2_setaudioproperties – Google Flix Engine Linux Reference Manual User Manual

Page 194

Advertising
background image

188

Flix Engine Linux Module Documentation

See also:

Example Usage

5.43.4.2

on2sc Flix2_GetFrameServer (FLIX2HANDLE flix, on2bool ∗ enabled)

Retrieve the current frame server status.

Parameters:

← flix Handle to the flix engine returned from

Flix2_Create()

or

Flix2_CreateEx()

→ enabled Enabled (on2true) or disabled (on2false)

Return values:

ON2_OK

on success

ON2_INVALID_PARAMS

should one or more of the preconditions fail

Precondition:

flix

is not NULL

Attention:

Available only in the

Flix Engine Core Library

Note:

Default: on2false (disabled)
If enabled the user should call at least one of

Flix2_SetAudioProperties()

or

Flix2_-

SetVideoProperties()

before calling

Flix2_EncodeFrame()

5.43.4.3

on2sc Flix2_SetAudioProperties (FLIX2HANDLE flix, uint8_t channels, int16_t
bitspersample, int32_t samplerate)

Set the input audio properties for the frame server.

When

FrameTypeAudio

is passed to

Flix2_EncodeFrame()

the frame server will assume the input is of this

format. The sample rate given will be used to calculate a timestamp.

Parameters:

← flix Handle to the flix engine returned from

Flix2_Create()

or

Flix2_CreateEx()

← channels Number of audio channels (1/2)

← bitspersample The bits per input sample (8/16)

← samplerate The input sample rate in Hz (11025/22050/44100)

Return values:

ON2_OK

on success

ON2_INVALID_PARAMS

should one or more of the preconditions fail

Generated on Tue Jul 20 17:39:03 2010 for Flix Engine Linux by Doxygen

Advertising