• Home
  • Raw
  • Download

Lines Matching refs:audio

20  * @brief Provides unified APIs for audio services to access audio drivers.
22 …* An audio service can obtain an audio driver object or agent and then call APIs provided by this …
23 …* access different types of audio devices based on the audio IDs, thereby obtaining audio informat…
24 * subscribing to or unsubscribing from audio data, enabling or disabling an audio,
25 …* setting the audio data reporting mode, and setting audio options such as the accuracy and measur…
31 package ohos.hdi.audio.v1_0;
33 import ohos.hdi.audio.v1_0.AudioTypes;
37 …* @brief Provides capabilities for audio capturing, including controlling the capturing, setting a…
38 * scenes, and volume, and capturing audio frames.
44 * @brief Reads a frame of input data (uplink data) from the audio driver for capturing.
49 …* @param replyBytes Indicates the pointer to the actual length (in bytes) of the audio data to rea…
55 * @brief Obtains the last number of input audio frames.
58 * @param frames Indicates the pointer to the last number of input audio frames.
66 * @brief Checks whether the configuration of an audio scene is supported.
68 * @param handle Indicates the audio handle.
69 * @param scene Indicates the pointer to the descriptor of the audio scene.
78 * @brief Selects an audio scene.
81 …* <li>To select a specific audio scene, you need to specify both the application scenario and ou…
93 * @param handle Indicates the audio handle.
94 * @param scene Indicates the pointer to the descriptor of the audio scene to select.
101 * @brief Sets the mute operation for the audio.
103 * @param handle Indicates the audio handle.
104 * @param mute Specifies whether to mute the audio. Value <b>true</b> means to mute the audio,
112 * @brief Obtains the mute operation set for the audio.
114 * @param handle Indicates the audio handle.
115 …* @param mute Indicates the pointer to the mute operation set for the audio. Value <b>true</b> mea…
116 * the audio is muted, and <b>false</b> means the opposite.
123 * @brief Sets the audio volume.
125 … * The volume ranges from 0.0 to 1.0. If the volume level in an audio service ranges from 0 to 15,
126 …* <b>0.0</b> indicates that the audio is muted, and <b>1.0</b> indicates the maximum volume level …
128 * @param handle Indicates the audio handle.
136 * @brief Obtains the audio volume.
138 * @param handle Indicates the audio handle.
146 * @brief Obtains the range of the audio gain.
148 …* The audio gain can be expressed in one of the following two ways (depending on the chip platform…
151 * <li>Actual audio gain values, for example, ranging from -50 to 6 dB</li>
152 * <li>Float numbers ranging from 0.0 to 1.0, where <b>0.0</b> means to mute the audio,
155 * @param handle Indicates the audio handle.
165 * @brief Obtains the audio gain.
167 * @param handle Indicates the audio handle.
168 * @param gain Indicates the pointer to the audio gain.
169 * @return Returns <b>0</b> if the audio gain is obtained; returns a negative value otherwise.
176 * @brief Sets the audio gain.
178 * @param handle Indicates the audio handle.
179 * @param gain Indicates the audio gain to set.
187 * @brief Obtains the audio frame size, that is, the length (in bytes) of a frame.
189 * @param handle Indicates the audio handle.
190 * @param size Indicates the pointer to the audio frame size (in bytes).
191 …* @return Returns <b>0</b> if the audio frame size is obtained; returns a negative value otherwise.
196 * @brief Obtains the number of audio frames in the audio buffer.
198 * @param handle Indicates the audio handle.
199 * @param count Indicates the pointer to the number of audio frames in the audio buffer.
200 …* @return Returns <b>0</b> if the number of audio frames is obtained; returns a negative value oth…
205 * @brief Sets audio sampling attributes.
207 * @param handle Indicates the audio handle.
208 …* @param attrs Indicates the pointer to the audio sampling attributes to set, such as the sampling…
216 * @brief Obtains audio sampling attributes.
218 * @param handle Indicates the audio handle.
219 … * @param attrs Indicates the pointer to the audio sampling attributes, such as the sampling rate,
221 …* @return Returns <b>0</b> if audio sampling attributes are obtained; returns a negative value oth…
227 * @brief Obtains the data channel ID of the audio.
229 * @param handle Indicates the audio handle.
236 * @brief Sets extra audio parameters.
238 * @param handle Indicates the audio handle.
239 … * @param keyValueList Indicates the pointer to the key-value list of the extra audio parameters.
246 * @brief Obtains extra audio parameters.
248 * @param handle Indicates the audio handle.
249 … * @param keyValueList Indicates the pointer to the key-value list of the extra audio parameters.
258 * @param handle Indicates the audio handle.
268 * @param handle Indicates the audio handle.
276 * @brief Add the audio effect which the effectid indicated.
278 * @param handle Indicates the audio handle.
279 * @param effectid Indicates the audio effect instance identifier which is going to be added.
280 …* @return Returns <b>0</b> if the audio effect were added succesffully; returns a negative value o…
285 * @brief Remove the audio effect which the effectid indicated.
287 * @param handle Indicates the audio handle.
288 * @param effectid Indicates the audio effect which is going to be removed.
289 …* @return Returns <b>0</b> if the audio effect were removed succesffully; returns a negative value…
296 * @param handle Indicates the audio handle.
303 * @brief Starts audio rendering or capturing.
305 * @param handle Indicates the audio handle.
313 * @brief Stops audio rendering or capturing.
315 * @param handle Indicates the audio handle.
323 * @brief Pauses audio rendering or capturing.
325 * @param handle Indicates the audio handle.
333 * @brief Resumes audio rendering or capturing.
335 * @param handle Indicates the audio handle.
343 * @brief Flushes data in the audio buffer.
345 * @param handle Indicates the audio handle.
351 * @brief Sets or cancels the standby mode of the audio device.
353 * @param handle Indicates the audio handle.
360 * @brief Dumps information about the audio device.
362 * @param handle Indicates the audio handle.
372 * @param handle Indicates the audio handle.