From ce459e546b6a2e88d6dfc741cb062cb18d17db1c Mon Sep 17 00:00:00 2001 From: magekkkk Date: Fri, 20 Jan 2023 08:21:34 +0000 Subject: [PATCH] fix audio sdk review issues Signed-off-by: magekkkk --- api/@ohos.multimedia.audio.d.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/api/@ohos.multimedia.audio.d.ts b/api/@ohos.multimedia.audio.d.ts index 465232a516..182ff21e68 100644 --- a/api/@ohos.multimedia.audio.d.ts +++ b/api/@ohos.multimedia.audio.d.ts @@ -16,7 +16,7 @@ import {ErrorCallback, AsyncCallback, Callback} from './basic'; /** - * @name audio + * @namespace audio * @since 7 */ declare namespace audio { @@ -93,7 +93,7 @@ declare namespace audio { const DEFAULT_INTERRUPT_GROUP_ID: number; /** - * Obtains an AudioManager instance. + * Obtains an {@link AudioManager} instance. * @returns AudioManager object. * @since 7 * @syscap SystemCapability.Multimedia.Audio.Core @@ -101,7 +101,7 @@ declare namespace audio { function getAudioManager(): AudioManager; /** - * Obtains an AudioCapturer instance. This method uses an asynchronous callback to return the capturer instance. + * Obtains an {@link AudioCapturer} instance. This method uses an asynchronous callback to return the capturer instance. * @param options Capturer configurations. * @param callback Callback used to return the audio capturer instance. * @since 8 @@ -110,7 +110,7 @@ declare namespace audio { function createAudioCapturer(options: AudioCapturerOptions, callback: AsyncCallback): void; /** - * Obtains an AudioCapturer instance. This method uses a promise to return the capturer instance. + * Obtains an {@link AudioCapturer} instance. This method uses a promise to return the capturer instance. * @param options Capturer configurations. * @returns Promise used to return the audio capturer instance. * @since 8 @@ -119,7 +119,7 @@ declare namespace audio { function createAudioCapturer(options: AudioCapturerOptions): Promise; /** - * Obtains an AudioRenderer instance. This method uses an asynchronous callback to return the renderer instance. + * Obtains an {@link AudioRenderer} instance. This method uses an asynchronous callback to return the renderer instance. * @param options Renderer configurations. * @param callback Callback used to return the audio renderer instance. * @since 8 @@ -128,7 +128,7 @@ declare namespace audio { function createAudioRenderer(options: AudioRendererOptions, callback: AsyncCallback): void; /** - * Obtains an AudioRenderer instance. This method uses a promise to return the renderer instance. + * Obtains an {@link AudioRenderer} instance. This method uses a promise to return the renderer instance. * @param options Renderer configurations. * @returns Promise used to return the audio renderer instance. * @since 8 @@ -137,7 +137,7 @@ declare namespace audio { function createAudioRenderer(options: AudioRendererOptions): Promise; /** - * Obtains a TonePlayer instance. This method uses an asynchronous callback to return the renderer instance. + * Obtains a {@link TonePlayer} instance. This method uses an asynchronous callback to return the renderer instance. * @param options Tone playing attribute. * @returns Promise used to return the tone player instance. * @since 9 @@ -147,7 +147,7 @@ declare namespace audio { function createTonePlayer(options: AudioRendererInfo, callback: AsyncCallback): void; /** - * Obtains a TonePlayer instance. This method uses a promise to return the renderer instance. + * Obtains a {@link TonePlayer} instance. This method uses a promise to return the renderer instance. * @param options Tone playing attribute. * @returns Promise used to return the tone player instance. * @since 9 @@ -1495,7 +1495,7 @@ declare namespace audio { off(type: 'interrupt', interrupt: AudioInterrupt, callback?: Callback): void; /** - * Obtains an AudioVolumeManager instance. + * Obtains an {@link AudioVolumeManager} instance. * @returns AudioVolumeManager instance. * @since 9 * @syscap SystemCapability.Multimedia.Audio.Volume @@ -1503,7 +1503,7 @@ declare namespace audio { getVolumeManager(): AudioVolumeManager; /** - * Obtains an AudioStreamManager instance. This method uses an asynchronous callback to return the result. + * Obtains an {@link AudioStreamManager} instance. * @returns AudioStreamManager instance. * @since 9 * @syscap SystemCapability.Multimedia.Audio.Core @@ -1511,7 +1511,7 @@ declare namespace audio { getStreamManager(): AudioStreamManager; /** - * Obtains an AudioRoutingManager instance. + * Obtains an {@link AudioRoutingManager} instance. * @returns AudioRoutingManager instance. * @since 9 * @syscap SystemCapability.Multimedia.Audio.Device -- Gitee