From 326782753ad9504757743c95a8daee43082170be Mon Sep 17 00:00:00 2001 From: zhanhang Date: Sat, 8 Oct 2022 18:45:38 +0800 Subject: [PATCH] add selectInputDevices interface Signed-off-by: zhanhang Change-Id: Icd961e79cf6141650b9069f5e7027239d049e0e8 --- api/@ohos.multimedia.audio.d.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/api/@ohos.multimedia.audio.d.ts b/api/@ohos.multimedia.audio.d.ts index e068644e18..e8110780fe 100644 --- a/api/@ohos.multimedia.audio.d.ts +++ b/api/@ohos.multimedia.audio.d.ts @@ -1521,6 +1521,24 @@ declare namespace audio { * @systemapi */ selectOutputDeviceByFilter(filter: AudioRendererFilter, outputAudioDevices: AudioDeviceDescriptors): Promise; + /** + * Select the input device. This method uses an asynchronous callback to return the result. + * @param inputAudioDevices Audio device description + * @param callback Callback used to return the result. + * @since 9 + * @syscap SystemCapability.Multimedia.Audio.Device + * @systemapi + */ + selectInputDevice(inputAudioDevices: AudioDeviceDescriptors, callback: AsyncCallback): void; + /** + * Select the input device. This method uses a promise to return the result. + * @param inputAudioDevices Audio device description + * @return Promise used to return the result. + * @since 9 + * @syscap SystemCapability.Multimedia.Audio.Device + * @systemapi + */ + selectInputDevice(inputAudioDevices: AudioDeviceDescriptors): Promise; } /** -- Gitee