1e41f4b71Sopenharmony_ci# Media Subsystem Changelog
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci## c1.multimedia.1 Error Code Implementation of the AudioRenderer and AudioCapturer Classes in ohos.multimedia.audio Is Corrected
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci**Access Level**
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ciPublic API
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci**Reason for Change**
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ciThe audio framework standardizes the following error codes:
12e41f4b71Sopenharmony_ci6800101: The input parameter type does not match. 401: The number of input parameters does not match. 6800104: The enumerated value is not in the specified range.
13e41f4b71Sopenharmony_ciIn the original implementation, error code 6800104 is returned when the input parameter type does not match, and error code 6800101 is returned when the number of input parameters does not match.
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ci**Change Impact**
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ciThis change is a non-compatible change.
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ciIf your application uses these error codes, make an adaptation accordingly.
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ciBefore change:
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ci**audioRenderer.off**: If the number of input parameters does not match, error code 6800101 is returned. If the input parameter type does not match, error code 6800104 is returned.
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ciAfter change:
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci**audioRenderer.off**: If the number of input parameters does not match, error code 401 is returned. If the input parameter type does not match, error code 6800101 is returned.
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ciBefore change:
30e41f4b71Sopenharmony_ci
31e41f4b71Sopenharmony_ci**audioCapturer.off**: If the number of input parameters does not match, error code 6800101 is returned. If the input parameter type does not match, error code 6800104 is returned.
32e41f4b71Sopenharmony_ci
33e41f4b71Sopenharmony_ciAfter change:
34e41f4b71Sopenharmony_ci
35e41f4b71Sopenharmony_ci**audioCapturer.off**: If the number of input parameters does not match, error code 401 is returned. If the input parameter type does not match, error code 6800101 is returned.
36e41f4b71Sopenharmony_ci
37e41f4b71Sopenharmony_ci**Start API Level**
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_ci12
40e41f4b71Sopenharmony_ci
41e41f4b71Sopenharmony_ci**Change Since**
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ciOpenHarmony SDK 5.0.0.24
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ci**Key API/Component Changes**
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_ciAudioRenderer.off
48e41f4b71Sopenharmony_ci
49e41f4b71Sopenharmony_ciAudioCapturer.off
50e41f4b71Sopenharmony_ci
51e41f4b71Sopenharmony_ci**Adaptation Guide**
52e41f4b71Sopenharmony_ci
53e41f4b71Sopenharmony_ciChange the error code from 6800104 to 6800101 in the code for the scenario where the input parameter type does not match; change the error code from 6800101 to 401 in the code for the scenario where the number of input parameters does not match.
54