---
title: 参数设置
description: "音频输出提供参数设置特性，该特性通过对外接口SetParam进行设置。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2400/armnative/kunpengcpsvideo_16_0043.html
sourcePath: /source/zh/kunpengboostkithistory/2400/armnative/kunpengcpsvideo_16_0043.html
indexId: cd9e80178a21325b5dc16a124c8c770d98fbc7ea2f237875f30280006e33ca8477
---
# 参数设置

音频输出提供参数设置特性，该特性通过对外接口SetParam进行设置。

#### AUDIO_SET_AUDIOPLAY_PARAM

通过指定module为DATA_AUDIO。cmd为AUDIO_SET_AUDIOPLAY_PARAM，data传入AudioPlayParams类型数据，可进行音频播放参数设置。示例如下：

```
VmiDataType module = DATA_AUDIO;
VmiCmd cmd = AUDIO_SET_AUDIOPLAY_PARAM;
AudioPlayParams audioPlayParams;
uint8_t* param = &audioPlayParams;
SetParam(module, cmd, param, sizeof(AudioPlayParams));
```
