hi_adec_chn_attr

Description

Defines the attributes of an audio decoding channel.

Prototype

typedef struct { 
    hi_payload_type type; 
    hi_u32          buf_size;    
    hi_adec_mode    mode;      
    hi_void ATTRIBUTE *value; 
} hi_adec_chn_attr;

Member

Description

type

Audio decoding protocol type. Currently, only HI_PT_G711A, HI_PT_G711U, and HI_PT_AAC are supported.

buf_size

Size of the audio decoding buffer, in frames.

For G.711a and G.711u decoding, the value range of this parameter is [2, 100]. For AAC decoding, the value range is [10, 80].

mode

Decoding mode.

For G.711a and G.711u decoding, the stream and pack decoding modes are supported. For AAC decoding, only the stream mode is supported.

value

Pointer to the specific protocol attribute.

When G.711a or G.711u is used for decoding, the parameter value is invalid and a non-null pointer is required. When AAC is used for decoding, the hi_adec_attr_aac structure variable needs to be transferred.

This is a static attribute.