You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Android/APIExample/lib-raw-data/src/main/cpp/include/AgoraBase.h
+54-22Lines changed: 54 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -150,7 +150,7 @@ enum WARN_CODE_TYPE
150
150
/** 111: A timeout occurs when switching to the live video.
151
151
*/
152
152
WARN_SWITCH_LIVE_VIDEO_TIMEOUT = 111,
153
-
/** 118: A timeout occurs when setting the client role in the live interactive streaming profile.
153
+
/** 118: A timeout occurs when setting the client role in the interactive live streaming profile.
154
154
*/
155
155
WARN_SET_CLIENT_ROLE_TIMEOUT = 118,
156
156
/** 121: The ticket to open the channel is invalid.
@@ -177,19 +177,19 @@ enum WARN_CODE_TYPE
177
177
/** 1014: Audio Device Module: A warning occurs in the playback device.
178
178
*/
179
179
WARN_ADM_RUNTIME_PLAYOUT_WARNING = 1014,
180
-
/** 1016: Audio Device Module: a warning occurs in the recording device.
180
+
/** 1016: Audio Device Module: A warning occurs in the audio capturing device.
181
181
*/
182
182
WARN_ADM_RUNTIME_RECORDING_WARNING = 1016,
183
-
/** 1019: Audio Device Module: no valid audio data is recorded.
183
+
/** 1019: Audio Device Module: No valid audio data is captured.
184
184
*/
185
185
WARN_ADM_RECORD_AUDIO_SILENCE = 1019,
186
186
/** 1020: Audio device module: The audio playback frequency is abnormal, which may cause audio freezes. This abnormality is caused by high CPU usage. Agora recommends stopping other apps.
187
187
*/
188
188
WARN_ADM_PLAYOUT_MALFUNCTION = 1020,
189
-
/** 1021: Audio device module: the audio recording frequency is abnormal, which may cause audio freezes. This abnormality is caused by high CPU usage. Agora recommends stopping other apps.
189
+
/** 1021: Audio device module: the audio capturing frequency is abnormal, which may cause audio freezes. This abnormality is caused by high CPU usage. Agora recommends stopping other apps.
190
190
*/
191
191
WARN_ADM_RECORD_MALFUNCTION = 1021,
192
-
/** 1025: The audio playback or recording is interrupted by system events (such as a phone call).
192
+
/** 1025: The audio playback or capturing is interrupted by system events (such as a phone call).
193
193
*/
194
194
WARN_ADM_CALL_INTERRUPTION = 1025,
195
195
/** 1029: During a call, the audio session category should be set to
@@ -199,13 +199,13 @@ enum WARN_CODE_TYPE
199
199
* AVAudioSessionCategoryPlayAndRecord.
200
200
*/
201
201
WARN_ADM_IOS_CATEGORY_NOT_PLAYANDRECORD = 1029,
202
-
/** 1031: Audio Device Module: The recorded audio voice is too low.
202
+
/** 1031: Audio Device Module: The captured audio voice is too low.
203
203
*/
204
204
WARN_ADM_RECORD_AUDIO_LOWLEVEL = 1031,
205
205
/** 1032: Audio Device Module: The playback audio voice is too low.
206
206
*/
207
207
WARN_ADM_PLAYOUT_AUDIO_LOWLEVEL = 1032,
208
-
/** 1033: Audio device module: The audio recording device is occupied.
208
+
/** 1033: Audio device module: The audio capturing device is occupied.
209
209
*/
210
210
WARN_ADM_RECORD_AUDIO_IS_ACTIVE = 1033,
211
211
/** 1040: Audio device module: An exception occurs with the audio drive.
@@ -215,12 +215,12 @@ enum WARN_CODE_TYPE
215
215
* - Update the sound card drive.
216
216
*/
217
217
WARN_ADM_WINDOWS_NO_DATA_READY_EVENT = 1040,
218
-
/** 1042: Audio device module: The audio recording device is different from the audio playback device,
219
-
* which may cause echoes problem. Agora recommends using the same audio device to record and playback
218
+
/** 1042: Audio device module: The audio capturing device is different from the audio playback device,
219
+
* which may cause echoes problem. Agora recommends using the same audio device to capture and playback
220
220
* audio.
221
221
*/
222
222
WARN_ADM_INCONSISTENT_AUDIO_DEVICE = 1042,
223
-
/** 1051: (Communication profile only) Audio processing module: A howling sound is detected when recording the audio data.
223
+
/** 1051: (Communication profile only) Audio processing module: A howling sound is detected when capturing the audio data.
224
224
*/
225
225
WARN_APM_HOWLING = 1051,
226
226
/** 1052: Audio Device Module: The device is in the glitch state.
@@ -300,7 +300,7 @@ enum ERROR_CODE_TYPE
300
300
/** 11: The request is canceled. This is for internal SDK use only, and it does not return to the application through any method or callback.
301
301
*/
302
302
ERR_CANCELED = 11,
303
-
/** 12: The method is called too often. This is for internal SDK use only, and it does not return to the application through any method or callback.
303
+
/** 12: The method is called too often.
304
304
*/
305
305
ERR_TOO_OFTEN = 12,
306
306
/** 13: The SDK fails to bind to the network socket. This is for internal SDK use only, and it does not return to the application through any method or callback.
@@ -395,7 +395,7 @@ enum ERROR_CODE_TYPE
395
395
/** 120: Decryption fails. The user may have used a different encryption password to join the channel. Check your settings or try rejoining the channel.
396
396
*/
397
397
ERR_DECRYPTION_FAILED = 120,
398
-
/** 123: The user is banned by the server. This error occurs when the user is kicked off the channel from the server.
398
+
/** 123: The user is banned by the server. This error occurs when the user is kicked out the channel from the server.
399
399
*/
400
400
ERR_CLIENT_IS_BANNED_BY_SERVER = 123,
401
401
/** 124: Incorrect watermark file parameter.
@@ -437,9 +437,23 @@ enum ERROR_CODE_TYPE
437
437
/** 155: The server fails to find the stream.
438
438
*/
439
439
ERR_PUBLISH_STREAM_NOT_FOUND = 155,
440
-
/** 156: The format of the RTMP stream URL is not supported. Check whether the URL format is correct.
440
+
/** 156: The format of the RTMP or RTMPS stream URL is not supported. Check whether the URL format is correct.
441
441
*/
442
442
ERR_PUBLISH_STREAM_FORMAT_NOT_SUPPORTED = 156,
443
+
/** 157: The necessary dynamical library is not integrated. For example, if you call
444
+
* the \ref agora::rtc::IRtcEngine::enableDeepLearningDenoise "enableDeepLearningDenoise" but do not integrate the dynamical
445
+
* library for the deep-learning noise reduction into your project, the SDK reports this error code.
446
+
*
447
+
*/
448
+
ERR_MODULE_NOT_FOUND = 157,
449
+
/// @cond
450
+
/** 158: The dynamical library for the super-resolution algorithm is not integrated.
451
+
* When you call the \ref agora::rtc::IRtcEngine::enableRemoteSuperResolution "enableRemoteSuperResolution" method but
452
+
* do not integrate the dynamical library for the super-resolution algorithm
453
+
* into your project, the SDK reports this error code.
454
+
*/
455
+
ERR_MODULE_SUPER_RESOLUTION_NOT_FOUND = 158,
456
+
/// @endcond
443
457
444
458
//signaling: 400~600
445
459
ERR_LOGOUT_OTHER = 400, //
@@ -512,19 +526,19 @@ enum ERROR_CODE_TYPE
512
526
/** 1010: Audio Device Module: An error occurs in stopping the playback device.
513
527
*/
514
528
ERR_ADM_STOP_PLAYOUT = 1010,
515
-
/** 1011: Audio Device Module: An error occurs in initializing the recording device.
529
+
/** 1011: Audio Device Module: An error occurs in initializing the capturing device.
516
530
*/
517
531
ERR_ADM_INIT_RECORDING = 1011,
518
-
/** 1012: Audio Device Module: An error occurs in starting the recording device.
532
+
/** 1012: Audio Device Module: An error occurs in starting the capturing device.
519
533
*/
520
534
ERR_ADM_START_RECORDING = 1012,
521
-
/** 1013: Audio Device Module: An error occurs in stopping the recording device.
535
+
/** 1013: Audio Device Module: An error occurs in stopping the capturing device.
522
536
*/
523
537
ERR_ADM_STOP_RECORDING = 1013,
524
538
/** 1015: Audio Device Module: A playback error occurs. Check your playback device and try rejoining the channel.
525
539
*/
526
540
ERR_ADM_RUNTIME_PLAYOUT_ERROR = 1015,
527
-
/** 1017: Audio Device Module: A recording error occurs.
541
+
/** 1017: Audio Device Module: A capturing error occurs.
528
542
*/
529
543
ERR_ADM_RUNTIME_RECORDING_ERROR = 1017,
530
544
/** 1018: Audio Device Module: Fails to record.
@@ -548,8 +562,8 @@ enum ERROR_CODE_TYPE
548
562
/** 1101: Audio device module: A fatal exception occurs.
549
563
*/
550
564
ERR_ADM_ANDROID_JNI_JAVA_RESOURCE = 1101,
551
-
/** 1108: Audio device module: The recording frequency is lower than 50.
552
-
* 0 indicates that the recording is not yet started. We recommend
565
+
/** 1108: Audio device module: The capturing frequency is lower than 50.
566
+
* 0 indicates that the capturing is not yet started. We recommend
553
567
* checking your recording permission.
554
568
*/
555
569
ERR_ADM_ANDROID_JNI_NO_RECORD_FREQUENCY = 1108,
@@ -646,7 +660,7 @@ enum ERROR_CODE_TYPE
646
660
* - Replace the device. */
647
661
ERR_ADM_WIN_CORE_RENDER_NOT_STARTUP = 1320,
648
662
/** 1322: Audio device module: No audio sampling device is available.
649
-
* Solutions: Plug in a proper recording device. */
663
+
* Solutions: Plug in a proper capturing device. */
650
664
ERR_ADM_WIN_CORE_NO_RECORDING_DEVICE = 1322,
651
665
/** 1323: Audio device module: No audio playout device is available.
652
666
* Solutions: Plug in a proper playback device.*/
@@ -693,7 +707,7 @@ enum ERROR_CODE_TYPE
693
707
* - Reboot the system.
694
708
* - Upgrade your audio card driver.*/
695
709
ERR_ADM_WIN_WAVE_START_PLAYOUT = 1358,
696
-
/** 1359: Audio Device Module: No recording device exists.
710
+
/** 1359: Audio Device Module: No capturing device exists.
697
711
*/
698
712
ERR_ADM_NO_RECORDING_DEVICE = 1359,
699
713
/** 1360: Audio Device Module: No playback device exists.
@@ -727,7 +741,7 @@ enum ERROR_CODE_TYPE
727
741
ERR_VCM_ENCODER_SET_ERROR = 1603,
728
742
};
729
743
730
-
/** Output log filter level. */
744
+
/** Output log filter level. */
731
745
enum LOG_FILTER_TYPE
732
746
{
733
747
/** 0: Do not output any log information. */
@@ -750,6 +764,24 @@ enum LOG_FILTER_TYPE
750
764
LOG_FILTER_MASK = 0x80f,
751
765
/// @endcond
752
766
};
767
+
/** The output log level of the SDK.
768
+
*
769
+
* @since v3.3.0
770
+
*/
771
+
enumclassLOG_LEVEL {
772
+
/** 0: Do not output any log. */
773
+
LOG_LEVEL_NONE = 0x0000,
774
+
/** 0x0001: (Default) Output logs of the FATAL, ERROR, WARN and INFO level. We recommend setting your log filter as this level.
775
+
*/
776
+
LOG_LEVEL_INFO = 0x0001,
777
+
/** 0x0002: Output logs of the FATAL, ERROR and WARN level.
778
+
*/
779
+
LOG_LEVEL_WARN = 0x0002,
780
+
/** 0x0004: Output logs of the FATAL and ERROR level. */
0 commit comments