• 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;
34 import ohos.hdi.audio.v1_0.IAudioCallback;
37 …* @brief Provides capabilities for audio rendering, including controlling the rendering, setting a…
38 * scenes, and volume, obtaining hardware latency, and rendering audio frames.
45 * @brief Obtains the estimated latency of the audio device driver.
54 * @brief Writes a frame of output data (downlink data) into the audio driver for rendering.
59 …* @param replyBytes Indicates the pointer to the actual length (in bytes) of the audio data to wri…
65 * @brief Obtains the last number of output audio frames.
68 * @param frames Indicates the pointer to the last number of output audio frames.
76 * @brief Sets the audio rendering speed.
86 * @brief Obtains the current audio rendering speed.
96 * @brief Sets the channel mode for audio rendering.
106 * @brief Obtains the current channel mode for audio rendering.
116 …* @brief Registers an audio callback that will be invoked during playback when buffer data writing…
150 * @brief Checks whether the configuration of an audio scene is supported.
152 * @param handle Indicates the audio handle.
153 * @param scene Indicates the pointer to the descriptor of the audio scene.
162 * @brief Selects an audio scene.
165 …* <li>To select a specific audio scene, you need to specify both the application scenario and ou…
177 * @param handle Indicates the audio handle.
178 * @param scene Indicates the pointer to the descriptor of the audio scene to select.
185 * @brief Sets the mute operation for the audio.
187 * @param handle Indicates the audio handle.
188 * @param mute Specifies whether to mute the audio. Value <b>true</b> means to mute the audio,
196 * @brief Obtains the mute operation set for the audio.
198 * @param handle Indicates the audio handle.
199 …* @param mute Indicates the pointer to the mute operation set for the audio. Value <b>true</b> mea…
200 * the audio is muted, and <b>false</b> means the opposite.
207 * @brief Sets the audio volume.
209 … * The volume ranges from 0.0 to 1.0. If the volume level in an audio service ranges from 0 to 15,
210 …* <b>0.0</b> indicates that the audio is muted, and <b>1.0</b> indicates the maximum volume level …
212 * @param handle Indicates the audio handle.
220 * @brief Obtains the audio volume.
222 * @param handle Indicates the audio handle.
230 * @brief Obtains the range of the audio gain.
232 …* The audio gain can be expressed in one of the following two ways (depending on the chip platform…
235 * <li>Actual audio gain values, for example, ranging from -50 to 6 dB</li>
236 * <li>Float numbers ranging from 0.0 to 1.0, where <b>0.0</b> means to mute the audio,
239 * @param handle Indicates the audio handle.
249 * @brief Obtains the audio gain.
251 * @param handle Indicates the audio handle.
252 * @param gain Indicates the pointer to the audio gain.
253 * @return Returns <b>0</b> if the audio gain is obtained; returns a negative value otherwise.
260 * @brief Sets the audio gain.
262 * @param handle Indicates the audio handle.
263 * @param gain Indicates the audio gain to set.
271 * @brief Obtains the audio frame size, that is, the length (in bytes) of a frame.
273 * @param handle Indicates the audio handle.
274 * @param size Indicates the pointer to the audio frame size (in bytes).
275 …* @return Returns <b>0</b> if the audio frame size is obtained; returns a negative value otherwise.
280 * @brief Obtains the number of audio frames in the audio buffer.
282 * @param handle Indicates the audio handle.
283 * @param count Indicates the pointer to the number of audio frames in the audio buffer.
284 …* @return Returns <b>0</b> if the number of audio frames is obtained; returns a negative value oth…
289 * @brief Sets audio sampling attributes.
291 * @param handle Indicates the audio handle.
292 …* @param attrs Indicates the pointer to the audio sampling attributes to set, such as the sampling…
300 * @brief Obtains audio sampling attributes.
302 * @param handle Indicates the audio handle.
303 … * @param attrs Indicates the pointer to the audio sampling attributes, such as the sampling rate,
305 …* @return Returns <b>0</b> if audio sampling attributes are obtained; returns a negative value oth…
311 * @brief Obtains the data channel ID of the audio.
313 * @param handle Indicates the audio handle.
320 * @brief Sets extra audio parameters.
322 * @param handle Indicates the audio handle.
323 … * @param keyValueList Indicates the pointer to the key-value list of the extra audio parameters.
330 * @brief Obtains extra audio parameters.
332 * @param handle Indicates the audio handle.
333 … * @param keyValueList Indicates the pointer to the key-value list of the extra audio parameters.
342 * @param handle Indicates the audio handle.
352 * @param handle Indicates the audio handle.
360 * @brief Add the audio effect which the effectid indicated.
362 * @param handle Indicates the audio handle.
363 * @param effectid Indicates the audio effect instance identifier which is going to be added.
364 …* @return Returns <b>0</b> if the audio effect were added succesffully; returns a negative value o…
369 * @brief Remove the audio effect which the effectid indicated.
371 * @param handle Indicates the audio handle.
372 * @param effectid Indicates the audio effect which is going to be removed.
373 …* @return Returns <b>0</b> if the audio effect were removed succesffully; returns a negative value…
380 * @param handle Indicates the audio handle.
387 * @brief Starts audio rendering or capturing.
389 * @param handle Indicates the audio handle.
397 * @brief Stops audio rendering or capturing.
399 * @param handle Indicates the audio handle.
407 * @brief Pauses audio rendering or capturing.
409 * @param handle Indicates the audio handle.
417 * @brief Resumes audio rendering or capturing.
419 * @param handle Indicates the audio handle.
427 * @brief Flushes data in the audio buffer.
429 * @param handle Indicates the audio handle.
435 * @brief Sets or cancels the standby mode of the audio device.
437 * @param handle Indicates the audio handle.
444 * @brief Dumps information about the audio device.
446 * @param handle Indicates the audio handle.
456 * @param handle Indicates the audio handle.