# AudioAdapter - [Overview](#section611392098165630) - [Summary](#section1187227500165630) - [Data Fields](#pub-attribs) - [Details](#section2025801532165630) - [Field](#section1769083627165630) - [CreateCapture](#a8a46358cdad8e0a9d15ac079713535f2) - [CreateRender](#a284ea2ad18ebac562ca7283652e61b50) - [DestroyCapture](#a1175a27c5273dab1acf8f8f3c4967637) - [DestroyRender](#a070a8d60f88134c58c4439d4419af913) - [GetPassthroughMode](#ad4c41f3193c5ec3da254f33e24241ea6) - [GetPortCapability](#a525ec7f3f3bb9975790e27f75145d0f6) - [InitAllPorts](#a3c46c9291d4c08d489454ffd78d4a1ee) - [SetPassthroughMode](#ac4e77085cdcc853de832a2b16b8dc69a) ## **Overview** **Related Modules:** [Audio](Audio.md) **Description:** Provides audio adapter capabilities, including initializing ports, creating rendering and capturing tasks, and obtaining the port capability set. See also : [AudioRender](AudioRender.md) : [AudioCapture](AudioCapture.md) **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Data Fields
InitAllPorts )(struct AudioAdapter *adapter) |
|
CreateRender )(struct AudioAdapter *adapter, const struct AudioDeviceDescriptor *desc, const struct AudioSampleAttributes *attrs, struct AudioRender **render) |
Creates an AudioRender object. |
DestroyRender )(struct AudioAdapter *adapter, struct AudioRender *render) |
Destroys an AudioRender object. |
CreateCapture )(struct AudioAdapter *adapter, const struct AudioDeviceDescriptor *desc, const struct AudioSampleAttributes *attrs, struct AudioCapture **capture) |
Creates an AudioCapture object. |
DestroyCapture )(struct AudioAdapter *adapter, struct AudioCapture *capture) |
Destroys an AudioCapture object. |
GetPortCapability )(struct AudioAdapter *adapter, const struct AudioPort *port, struct AudioPortCapability *capability) |
Obtains the capability set of the port driver for the audio adapter. |
SetPassthroughMode )(struct AudioAdapter *adapter, const struct AudioPort *port, enum AudioPortPassthroughMode mode) |
Sets the passthrough data transmission mode of the audio port driver. |
GetPassthroughMode )(struct AudioAdapter *adapter, const struct AudioPort *port, enum AudioPortPassthroughMode *mode) |
Obtains the passthrough data transmission mode of the audio port driver. |
| adapter | Indicates the pointer to the audio adapter to operate. |
| desc | Indicates the pointer to the descriptor of the audio adapter to start. |
| attrs | Indicates the pointer to the audio sampling attributes to open. |
| capture | Indicates the double pointer to the AudioCapture object. |
| adapter | Indicates the pointer to the audio adapter to operate. |
| desc | Indicates the pointer to the descriptor of the audio adapter to start. |
| attrs | Indicates the pointer to the audio sampling attributes to open. |
| render | Indicates the double pointer to the AudioRender object. |
| adapter | Indicates the pointer to the audio adapter to operate. |
| capture | Indicates the pointer to the AudioCapture object to operate. |
| adapter | Indicates the pointer to the audio adapter to operate. |
| render | Indicates the pointer to the AudioRender object to operate. |
| adapter | Indicates the pointer to the audio adapter to operate. |
| port | Indicates the pointer to the port. |
| mode | Indicates the pointer to the passthrough transmission mode to obtain. |
| adapter | Indicates the pointer to the audio adapter to operate. |
| port | Indicates the pointer to the port. |
| capability | Indicates the pointer to the capability set to obtain. |
| adapter | Indicates the pointer to the audio adapter to operate. |
| adapter | Indicates the pointer to the audio adapter to operate. |
| port | Indicates the pointer to the port. |
| mode | Indicates the passthrough transmission mode to set. |