# AudioAttribute ## **Overview** **Related Modules:** [Audio](Audio.md) **Description:** Provides attribute-related APIs for audio rendering or capturing, including functions to obtain frame information and set audio sampling attributes. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Data Fields
GetFrameSize )(AudioHandle handle, uint64_t *size) |
Obtains the audio frame size, that is, the length (in bytes) of a frame. |
GetFrameCount )(AudioHandle handle, uint64_t *count) |
|
SetSampleAttributes )(AudioHandle handle, const struct AudioSampleAttributes *attrs) |
|
GetSampleAttributes )(AudioHandle handle, struct AudioSampleAttributes *attrs) |
|
GetCurrentChannelId )(AudioHandle handle, uint32_t *channelId) |
handle | Indicates the audio handle. |
channelId | Indicates the pointer to the data channel ID. |
handle | Indicates the audio handle. |
count | Indicates the pointer to the number of audio frames in the audio buffer. |
handle | Indicates the audio handle. |
size | Indicates the pointer to the audio frame size (in bytes). |
handle | Indicates the audio handle. |
attrs | Indicates the pointer to the audio sampling attributes, such as the sampling rate, sampling precision, and channel. |
handle | Indicates the audio handle. |
attrs | Indicates the pointer to the audio sampling attributes to set, such as the sampling rate, sampling precision, and channel. |