1e41f4b71Sopenharmony_ci# native_audio_common.h
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ci## 概述
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ci声明音频公共基础数据结构。
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ci定义音频接口的公共返回值的类型。
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ci**库:** libohaudio.so
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci**引用文件**:<ohaudio/native_audio_common.h>
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.Multimedia.Audio.Core
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci**起始版本:** 12
17e41f4b71Sopenharmony_ci
18e41f4b71Sopenharmony_ci**相关模块:**[OHAudio](_o_h_audio.md)
19e41f4b71Sopenharmony_ci
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci## 汇总
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ci
24e41f4b71Sopenharmony_ci### 枚举
25e41f4b71Sopenharmony_ci
26e41f4b71Sopenharmony_ci| 名称 | 描述 | 
27e41f4b71Sopenharmony_ci| -------- | -------- |
28e41f4b71Sopenharmony_ci| [OH_AudioCommon_Result](_o_h_audio.md#oh_audiocommon_result) {<br/>AUDIOCOMMON_RESULT_SUCCESS = 0,<br/>AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM = 6800101,<br/>AUDIOCOMMON_RESULT_ERROR_NO_MEMORY = 6800102,<br/>AUDIOCOMMON_RESULT_ERROR_ILLEGAL_STATE = 6800103,<br/>AUDIOCOMMON_RESULT_ERROR_UNSUPPORTED = 6800104,<br/>AUDIOCOMMON_RESULT_ERROR_TIMEOUT = 6800105,<br/>AUDIOCOMMON_RESULT_ERROR_STREAM_LIMIT = 6800201,<br/>AUDIOCOMMON_RESULT_ERROR_SYSTEM = 6800301<br/>} | 音频错误码。 | 
29e41f4b71Sopenharmony_ci| [OH_AudioScene](_o_h_audio.md#oh_audioscene) { <br/>AUDIO_SCENE_DEFAULT = 0, <br/>AUDIO_SCENE_RINGING = 1, <br/>AUDIO_SCENE_PHONE_CALL = 2, <br/>AUDIO_SCENE_VOICE_CHAT = 3 <br/>} | 定义音频场景。  | 
30