# AudioRender - [Overview](#section1801946826165630) - [Summary](#section1078987041165630) - [Data Fields](#pub-attribs) - [Details](#section422181551165630) - [Field](#section202261737165630) - [GetChannelMode](#aad3d5e4104167620eacb2ba23edce50e) - [GetLatency](#a56dff6bbe1c5ac8361b2e3238ab09563) - [GetRenderPosition](#a24072bec0e2cd75727b57ec3e14f7ccb) - [GetRenderSpeed](#af0a19dacb293d3fbe600902b93af1ee9) - [RenderFrame](#a463cab04d0805a5c7b3ba5884c468246) - [SetChannelMode](#ae5aad5b26ccdd65ba501620851c5ecec) - [SetRenderSpeed](#a5589427ae5a4ba6a8d2a19dd8eddbcd8) ## **Overview** **Related Modules:** [Audio](audio.md) **Description:** Provides capabilities for audio rendering, including controlling the rendering, setting audio attributes, scenes, and volume, obtaining hardware latency, and rendering audio frames. See also : [AudioControl](audiocontrol.md) : [AudioAttribute](audioattribute.md) : [AudioScene](audioscene.md) : [AudioVolume](audiovolume.md) **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Data Fields
struct AudioControl Defines the audio control. For details, see AudioControl. |
|
struct AudioAttribute Defines the audio attribute. For details, see AudioAttribute. |
|
struct AudioScene Defines the audio scene. For details, see AudioScene. |
|
struct AudioVolume Defines audio volume. For details, see AudioVolume. |
|
GetLatency )(struct AudioRender *render, uint32_t *ms) |
|
RenderFrame )(struct AudioRender *render, const void *frame, uint64_t requestBytes, uint64_t *replyBytes) |
Writes a frame of output data (downlink data) into the audio driver for rendering. |
GetRenderPosition )(struct AudioRender *render, uint64_t *frames, struct AudioTimeStamp *time) |
|
SetRenderSpeed )(struct AudioRender *render, float speed) |
|
GetRenderSpeed )(struct AudioRender *render, float *speed) |
|
SetChannelMode )(struct AudioRender *render, enum AudioChannelMode mode) |
|
GetChannelMode )(struct AudioRender *render, enum AudioChannelMode *mode) |
| render | Indicates the pointer to the AudioRender object to operate. |
| mode | Indicates the pointer to the channel mode to obtain. |
| render | Indicates the pointer to the AudioRender object to operate. |
| ms | Indicates the pointer to the latency (in milliseconds) to be obtained. |
| render | Indicates the pointer to the AudioRender object to operate. |
| frames | Indicates the pointer to the last number of output audio frames. |
| time | Indicates the pointer to the timestamp associated with the frame. |
| render | Indicates the pointer to the AudioRender object to operate. |
| speed | Indicates the pointer to the current rendering speed to obtain. |
| render | Indicates the pointer to the AudioRender object to operate. |
| frame | Indicates the pointer to the frame to write. |
| requestBytes | Indicates the size of the frame, in bytes. |
| replyBytes | Indicates the pointer to the actual length (in bytes) of the audio data to write. |
| render | Indicates the pointer to the AudioRender object to operate. |
| mode | Indicates the channel mode to set. |
| render | Indicates the pointer to the AudioRender object to operate. |
| speed | Indicates the rendering speed to set. |