• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15setAudioEffectMode(mode: AudioEffectMode, callback: AsyncCallback<void>): void;
16setAudioEffectMode(mode: AudioEffectMode): Promise<void>;
17 ```
18
19The following error code types are added:
20
21 ```ts
22// The input parameter type or quantity is incorrect.
23@throws { BusinessError } 401 - If input parameter type or number mismatch.
24// The input parameter value is out of the value range.
25@throws { BusinessError } 6800101 - Invalid parameter error.
26 ```
27
28**Adaptation Guide**
29
30If error code 401 is thrown, check whether the type and quantity of input parameters comply with the API definition.
31If other codes are thrown, check the possible causes and handle the exceptions properly.
32