!13677 设备切换注释

Merge pull request !13677 from libliang/setDefaultOutputDevice
This commit is contained in:
openharmony_ci 2024-08-27 10:50:00 +00:00 committed by Gitee
commit c5415c1f71
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -7404,8 +7404,8 @@ declare namespace audio {
* Temporarily changes the current audio device
* This function applys on audiorenderers whose StreamUsage are
* STREAM_USAGE_VOICE_COMMUNICATIN/STREAM_USAGE_VIDEO_COMMUNICATION/STREAM_USAGE_VOICE_MESSAGE.
* Setting the device will ony takes effect if no other accessory such as headphoes are in use
* @param { DeviceType } devicetype - the available deviceTypes are
* Setting the device will only takes effect if no other accessory such as headphones are in use
* @param { DeviceType } deviceType - the available deviceTypes are
* EARPIECE: Built-in earpiece
* SPEAKER: Built-in speaker
* DEFAULT: System default output device
@ -7418,7 +7418,7 @@ declare namespace audio {
* @syscap SystemCapability.Multimedia.Audio.Renderer
* @since 12
*/
setDefaultOutputDevice(deviceType: DeviceType): Promise<void>
setDefaultOutputDevice(deviceType: DeviceType): Promise<void>;
/**
* Listens for audio interrupt events. This method uses a callback to get interrupt events. The interrupt event is