mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 09:22:53 +00:00
!6752 revert prefer name change
Merge pull request !6752 from AOL/prefer_revert
This commit is contained in:
commit
72e7e34e26
40
api/@ohos.multimedia.audio.d.ts
vendored
40
api/@ohos.multimedia.audio.d.ts
vendored
@ -1971,24 +1971,24 @@ declare namespace audio {
|
||||
* Get output device for target audio renderer info.
|
||||
* @param { AudioRendererInfo } rendererInfo - Audio renderer information
|
||||
* @param { AsyncCallback<AudioDeviceDescriptors> } callback - Callback used to return the result.
|
||||
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
|
||||
* @throws { BusinessError } 6800101 - if input parameter value error. Return by callback.
|
||||
* @throws { BusinessError } 401 - Input parameter type or number mismatch.
|
||||
* @throws { BusinessError } 6800101 - Input parameter value error. Return by callback.
|
||||
* @throws { BusinessError } 6800301 - System error. Return by callback.
|
||||
* @syscap SystemCapability.Multimedia.Audio.Device
|
||||
* @since 10
|
||||
*/
|
||||
getPreferredOutputDeviceForRendererInfo(rendererInfo: AudioRendererInfo, callback: AsyncCallback<AudioDeviceDescriptors>): void;
|
||||
getPreferOutputDeviceForRendererInfo(rendererInfo: AudioRendererInfo, callback: AsyncCallback<AudioDeviceDescriptors>): void;
|
||||
/**
|
||||
* Get output device for target audio renderer info.
|
||||
* @param { AudioRendererInfo } rendererInfo - Audio renderer information.
|
||||
* @returns { Promise<AudioDeviceDescriptors> } Promise used to return the result.
|
||||
* @throws { BusinessError } 401 - if input parameter type or number mismatch.
|
||||
* @throws { BusinessError } 6800101 - if input parameter value error. Return by promise.
|
||||
* @throws { BusinessError } 401 - Input parameter type or number mismatch.
|
||||
* @throws { BusinessError } 6800101 - Input parameter value error. Return by promise.
|
||||
* @throws { BusinessError } 6800301 - System error. Return by promise.
|
||||
* @syscap SystemCapability.Multimedia.Audio.Device
|
||||
* @since 10
|
||||
*/
|
||||
getPreferredOutputDeviceForRendererInfo(rendererInfo: AudioRendererInfo): Promise<AudioDeviceDescriptors>;
|
||||
getPreferOutputDeviceForRendererInfo(rendererInfo: AudioRendererInfo): Promise<AudioDeviceDescriptors>;
|
||||
|
||||
/**
|
||||
* Gets preferred output device for target audio renderer info.
|
||||
@ -2002,29 +2002,29 @@ declare namespace audio {
|
||||
getPreferredOutputDeviceForRendererInfoSync(rendererInfo: AudioRendererInfo): AudioDeviceDescriptors;
|
||||
|
||||
/**
|
||||
* Subscribes to preferred output device change events. When preferred device for target audio renderer info changes,
|
||||
* Subscribes to prefer output device change events. When prefer device for target audio renderer info changes,
|
||||
* registered clients will receive the callback.
|
||||
* @param { 'preferredOutputDeviceChangeForRendererInfo' } type - Type of the event to listen for. Only the
|
||||
* preferredOutputDeviceChangeForRendererInfo event is supported.
|
||||
* @param { 'preferOutputDeviceChangeForRendererInfo' } type - Type of the event to listen for. Only the
|
||||
* preferOutputDeviceChangeForRendererInfo event is supported.
|
||||
* @param { AudioRendererInfo } rendererInfo - Audio renderer information.
|
||||
* @param { Callback<AudioDeviceDescriptors> } callback - Callback used to obtain the changed preferred devices information.
|
||||
* @throws { BusinessError } 401 - If input parameter type or number mismatch.
|
||||
* @throws { BusinessError } 6800101 - If input parameter value error.
|
||||
* @param { Callback<AudioDeviceDescriptors> } callback - Callback used to obtain the changed prefer devices information.
|
||||
* @throws { BusinessError } 401 - Input parameter type or number mismatch.
|
||||
* @throws { BusinessError } 6800101 - Input parameter value error.
|
||||
* @syscap SystemCapability.Multimedia.Audio.Device
|
||||
* @since 10
|
||||
*/
|
||||
on(type: 'preferredOutputDeviceChangeForRendererInfo', rendererInfo: AudioRendererInfo, callback: Callback<AudioDeviceDescriptors>): void;
|
||||
on(type: 'preferOutputDeviceChangeForRendererInfo', rendererInfo: AudioRendererInfo, callback: Callback<AudioDeviceDescriptors>): void;
|
||||
/**
|
||||
* UnSubscribes to preferred output device change events.
|
||||
* @param { 'preferredOutputDeviceChangeForRendererInfo' } type - Type of the event to listen for. Only the
|
||||
* preferredOutputDeviceChangeForRendererInfo event is supported.
|
||||
* @param { Callback<AudioDeviceDescriptors> } callback - Callback used to obtain the changed preferred devices in subscribe.
|
||||
* @throws { BusinessError } 401 - If input parameter type or number mismatch.
|
||||
* @throws { BusinessError } 6800101 - If input parameter value error.
|
||||
* UnSubscribes to prefer output device change events.
|
||||
* @param { 'preferOutputDeviceChangeForRendererInfo' } type - Type of the event to listen for. Only the
|
||||
* preferOutputDeviceChangeForRendererInfo event is supported.
|
||||
* @param { Callback<AudioDeviceDescriptors> } callback - Callback used to obtain the changed prefer devices in subscribe.
|
||||
* @throws { BusinessError } 401 - Input parameter type or number mismatch.
|
||||
* @throws { BusinessError } 6800101 - Input parameter value error.
|
||||
* @syscap SystemCapability.Multimedia.Audio.Device
|
||||
* @since 10
|
||||
*/
|
||||
off(type: 'preferredOutputDeviceChangeForRendererInfo', callback?: Callback<AudioDeviceDescriptors>): void;
|
||||
off(type: 'preferOutputDeviceChangeForRendererInfo', callback?: Callback<AudioDeviceDescriptors>): void;
|
||||
|
||||
/**
|
||||
* Get input device for target audio capturer info.
|
||||
|
Loading…
Reference in New Issue
Block a user