hi_adec_chn_attr
Description
Defines the attributes of an audio decoding channel.
Definition
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. For G.711a and G.711u decoding, the value of this parameter is invalid and can be any non-null pointer. For AAC decoding, the hi_adec_attr_aac structure variable must be passed. This is a static attribute. |