1# Multimedia Subsystem Changelog 2 3## cl.multimedia.1 Added Error Code Declaration for APIs of API Version 10 with Input Parameters in @ohos.multimedia.audio.d.ts 4 5**Change Impact** 6 7For an API that carries input parameters, if the parameter type or quantity is incorrect, error code 401 is thrown synchronously. If the parameter value is out of the value range, the corresponding error code is thrown directly for a synchronous API and returned through the **error** object for an asynchronous API. 8If the API usage meets the definition requirements, there is no compatibility impact. 9 10**Key API/Component Changes** 11 12The following APIs are involved: 13 14 ```ts 15getPreferOutputDeviceForRendererInfo(rendererInfo: AudioRendererInfo, callback: AsyncCallback<AudioDeviceDescriptors>): void; 16getPreferOutputDeviceForRendererInfo(rendererInfo: AudioRendererInfo): Promise<AudioDeviceDescriptors>; 17on(type: 'preferredOutputDeviceChangeForRendererInfo', rendererInfo: AudioRendererInfo, callback: Callback<AudioDeviceDescriptors>): void; 18off(type: 'preferredOutputDeviceChangeForRendererInfo', callback?: Callback<AudioDeviceDescriptors>): void; 19setAudioEffectMode(mode: AudioEffectMode, callback: AsyncCallback<void>): void; 20setAudioEffectMode(mode: AudioEffectMode): Promise<void>; 21 ``` 22 23The following error code types are added: 24 25 ```ts 26// The input parameter type or quantity is incorrect. 27@throws { BusinessError } 401 - If input parameter type or number mismatch. 28// The input parameter value is out of the value range. 29@throws { BusinessError } 6800101 - Invalid parameter error. 30// Common internal system error. 31@throws { BusinessError } 6800301 - System error. 32 ``` 33 34**Adaptation Guide** 35 36If error code 401 is thrown, check whether the type and quantity of input parameters comply with the API definition. 37If other codes are thrown, check the possible causes and handle the exceptions properly. 38