beautypg.com

Audio_options_validate, Audio_options_setstereo, Audio_options_setstereo() – Google Flix Engine Linux Reference Manual User Manual

Page 25

background image

5.2 Deprecated

19

• source sample rate < 16000Hz, set default to

Hertz11025

• source sample rate >= 16000Hz and < 32000Hz, set default to

Hertz22050

• source sample rate >= 32000Hz, set default to

Hertz44100

Deprecated

Use the

Filter Interface

along with

FE2_FILTER_RESAMPLE

and the

FE2_RESAMPLE_RATE

pa-

rameter.

5.2.2.9

on2sc audio_options_SetStereo (FLIX2HANDLE flix, const on2bool stereo)

Set the number of output audio channels.

Parameters:

← flix Handle to the flix engine returned from

Flix2_Create()

or

Flix2_CreateEx()

← stereo Indicates whether to encode stereo (on2true) or mono (on2false)

Return values:

ON2_OK

on success

ON2_INVALID_PARAMS

should the precondition fail

ON2_NET_ERROR

the underlying communication layer failed

Precondition:

flix

is not NULL

Remarks:

Flash video files are limited by the number of output audio channels they can store. The default output
number of channels is determined using the source file attributes in the following manner:

• input number of channels == 2, set default to: stereo (on2true)

• otherwise, set default to: mono (on2false)

Deprecated

Use the

Codec Interface

along with the

FE2_LAME_CHANNELS

parameter. This function will be

removed in a future release. See also:

Audio Codecs

.

5.2.2.10

on2sc audio_options_Validate (FLIX2HANDLE flix)

Validate the current audio encoding options.

Ensures the current audio options are sufficient to start encoding. The checks currently performed are:

• sample rate is a valid member of

FE2_AudioSamplingrates

• output format is a valid member of

FE2_FlvAudioFormat

Parameters:

← flix Handle to the flix engine returned from

Flix2_Create()

or

Flix2_CreateEx()

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