Skip to content

Commit 4b93117

Browse files
author
xia ning
authored
Merge pull request #259 from AgoraIO/dev/fix_raw
update 3.6.0.1 c++ header files
2 parents f5b7a24 + 103923e commit 4b93117

File tree

15 files changed

+12891
-5688
lines changed

15 files changed

+12891
-5688
lines changed

Android/APIExample/lib-player-helper/src/main/cpp/include/AgoraBase.h

Lines changed: 39 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
#include <stdlib.h>
1414

1515
#if defined(_WIN32)
16+
#ifndef WIN32_LEAN_AND_MEAN
1617
#define WIN32_LEAN_AND_MEAN
18+
#endif
1719
#include <windows.h>
1820
#define AGORA_CALL __cdecl
1921
#if defined(AGORARTC_EXPORT)
@@ -38,6 +40,20 @@
3840
#define AGORA_CALL
3941
#endif
4042

43+
#ifdef __GNUC__
44+
#define AGORA_GCC_VERSION_AT_LEAST(x, y) (__GNUC__ > (x) || __GNUC__ == (x) && __GNUC_MINOR__ >= (y))
45+
#else
46+
#define AGORA_GCC_VERSION_AT_LEAST(x, y) 0
47+
#endif
48+
49+
#if AGORA_GCC_VERSION_AT_LEAST(3, 1)
50+
#define AGORA_DEPRECATED_ATTRIBUTE __attribute__((deprecated))
51+
#elif defined(_MSC_VER)
52+
#define AGORA_DEPRECATED_ATTRIBUTE
53+
#else
54+
#define AGORA_DEPRECATED_ATTRIBUTE
55+
#endif
56+
4157
namespace agora {
4258
namespace util {
4359

@@ -220,6 +236,9 @@ enum WARN_CODE_TYPE {
220236
/** 1053: Audio Processing Module: A residual echo is detected, which may be caused by the belated scheduling of system threads or the signal overflow.
221237
*/
222238
WARN_APM_RESIDUAL_ECHO = 1053,
239+
/** 1054: Audio Processing Module: AI NS is closed, this can be triggered by manual settings or by performance detection modules.
240+
*/
241+
WARN_APM_AINS_CLOSED = 1054,
223242
/// @cond
224243
WARN_ADM_WIN_CORE_NO_RECORDING_DEVICE = 1322,
225244
/// @endcond
@@ -234,13 +253,13 @@ enum WARN_CODE_TYPE {
234253
* - Update the sound card drive.
235254
*/
236255
WARN_ADM_WIN_CORE_IMPROPER_CAPTURE_RELEASE = 1324,
237-
/** 1610: The origin resolution of the remote video is beyond the range where the super-resolution algorithm can be applied.
256+
/** 1610: The original resolution of the remote user's video is beyond the range where super resolution can be applied.
238257
*/
239258
WARN_SUPER_RESOLUTION_STREAM_OVER_LIMITATION = 1610,
240-
/** 1611: Another user is already using the super-resolution algorithm.
259+
/** 1611: Super resolution is already being used to boost another remote user's video.
241260
*/
242261
WARN_SUPER_RESOLUTION_USER_COUNT_OVER_LIMITATION = 1611,
243-
/** 1612: The device does not support the super-resolution algorithm.
262+
/** 1612: The device does not support using super resolution.
244263
*/
245264
WARN_SUPER_RESOLUTION_DEVICE_NOT_SUPPORTED = 1612,
246265
/// @cond
@@ -379,7 +398,8 @@ enum ERROR_CODE_TYPE {
379398
/** 117: The data stream transmission timed out.
380399
*/
381400
ERR_STREAM_MESSAGE_TIMEOUT = 117,
382-
/** 119: Switching roles fail. Please try to rejoin the channel.
401+
/** **DEPRECATED** 119: Deprecated as of v3.6.1. Use CLIENT_ROLE_CHANGE_FAILED_REASON in the \ref agora::rtc::IRtcEngineEventHandler::onClientRoleChangeFailed "onClientRoleChangeFailed" callback instead.
402+
* Switching roles fail. Please try to rejoin the channel.
383403
*/
384404
ERR_SET_CLIENT_ROLE_NOT_AUTHORIZED = 119,
385405
/** 120: Decryption fails. The user may have used a different encryption password to join the channel. Check your settings or try rejoining the channel.
@@ -411,7 +431,6 @@ enum ERROR_CODE_TYPE {
411431
ERR_ENCRYPTED_STREAM_NOT_ALLOWED_PUBLISH = 130,
412432
/** 134: The user account is invalid. */
413433
ERR_INVALID_USER_ACCOUNT = 134,
414-
415434
/** 151: CDN related errors. Remove the original URL address and add a new one by calling the \ref agora::rtc::IRtcEngine::removePublishStreamUrl "removePublishStreamUrl" and \ref agora::rtc::IRtcEngine::addPublishStreamUrl "addPublishStreamUrl" methods.
416435
*/
417436
ERR_PUBLISH_STREAM_CDN_ERROR = 151,
@@ -436,16 +455,13 @@ enum ERROR_CODE_TYPE {
436455
*
437456
*/
438457
ERR_MODULE_NOT_FOUND = 157,
439-
/// @cond
440-
/** 158: The dynamical library for the super-resolution algorithm is not integrated.
441-
* When you call the \ref agora::rtc::IRtcEngine::enableRemoteSuperResolution "enableRemoteSuperResolution" method but
442-
* do not integrate the dynamical library for the super-resolution algorithm
443-
* into your project, the SDK reports this error code.
444-
*/
445-
ERR_MODULE_SUPER_RESOLUTION_NOT_FOUND = 158,
446-
/// @endcond
447458

448-
/** 160: The recording operation has been performed.
459+
/** 160: The client is already recording audio. To start a new recording,
460+
* call \ref agora::rtc::IRtcEngine::stopAudioRecording "stopAudioRecording" to stop
461+
* the current recording first, and then
462+
* call \ref agora::rtc::IRtcEngine::startAudioRecording(const AudioRecordingConfiguration&) "startAudioRecording".
463+
*
464+
* @since v3.4.0
449465
*/
450466
ERR_ALREADY_IN_RECORDING = 160,
451467

@@ -708,10 +724,11 @@ enum ERROR_CODE_TYPE {
708724
ERR_ADM_NO_PLAYOUT_DEVICE = 1360,
709725

710726
// VDM error code starts from 1500
711-
727+
/// @cond
712728
/** 1500: Video Device Module: There is no camera device.
713729
*/
714730
ERR_VDM_CAMERA_NO_DEVICE = 1500,
731+
/// @endcond
715732

716733
/** 1501: Video Device Module: The camera is unauthorized.
717734
*/
@@ -735,6 +752,12 @@ enum ERROR_CODE_TYPE {
735752
/** 1603: Video Device Module: An error occurs in setting the video encoder.
736753
*/
737754
ERR_VCM_ENCODER_SET_ERROR = 1603,
755+
/** 1735: (Windows only) The Windows Audio service is disabled. You need to
756+
* either enable the Windows Audio service or restart the device.
757+
*
758+
* @since v3.5.0
759+
*/
760+
ERR_ADM_WIN_CORE_SERVRE_SHUT_DOWN = 1735,
738761
};
739762

740763
/** Output log filter level. */
@@ -764,7 +787,7 @@ enum LOG_FILTER_TYPE {
764787
* @since v3.3.0
765788
*/
766789
enum class LOG_LEVEL {
767-
/** 0: Do not output any log. */
790+
/** 0x0000: Do not output any log. */
768791
LOG_LEVEL_NONE = 0x0000,
769792
/** 0x0001: (Default) Output logs of the FATAL, ERROR, WARN and INFO level. We recommend setting your log filter as this level.
770793
*/

0 commit comments

Comments
 (0)