Skip to content

Commit 6152c3f

Browse files
authored
Merge pull request #448 from AgoraIO/dev/4.5.1
Dev/4.5.1
2 parents 6650f66 + 2a10159 commit 6152c3f

File tree

27 files changed

+100
-85
lines changed

27 files changed

+100
-85
lines changed

.github/ci/build/build_ios.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ echo short_version: $short_version
5353
echo pwd: `pwd`
5454
echo sdk_url: $sdk_url
5555

56+
export https_proxy=10.10.114.55:1080
57+
export http_proxy=10.10.114.55:1080
58+
export all_proxy=10.10.114.55:1080
59+
export LANG=en_US.UTF-8
60+
5661
unzip_name=Agora_Native_SDK_for_iOS_FULL
5762
zip_name=output.zip
5863
sdk_url_flag=false

.github/ci/build/build_mac.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ echo short_version: $short_version
5151
echo pwd: `pwd`
5252
echo sdk_url: $sdk_url
5353

54+
export https_proxy=10.10.114.55:1080
55+
export http_proxy=10.10.114.55:1080
56+
export all_proxy=10.10.114.55:1080
57+
export LANG=en_US.UTF-8
58+
5459
unzip_name=Agora_Native_SDK_for_iOS_FULL
5560
zip_name=output.zip
5661
sdk_url_flag=false
@@ -60,7 +65,7 @@ if [ -z "$sdk_url" ]; then
6065
sdk_url_flag=false
6166
echo "sdk_url is empty"
6267
echo unzip_name: $unzip_name
63-
mkdir ./$unzip_name/samples
68+
mkdir -p ./$unzip_name/samples
6469
cp -rf ./macOS ./$unzip_name/samples/APIExample || exit 1
6570
ls -al ./$unzip_name/samples/API-Example/
6671
else

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ xcuserdata
22
.DS_Store
33
AgoraRtcKit.framework
44
*/libs
5+
/sdk

Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/ProcessAudioRawData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public boolean onEarMonitoringAudioFrame(int type, int samplesPerChannel, int by
328328
}
329329

330330
@Override
331-
public boolean onPlaybackAudioFrameBeforeMixing(String channelId, int uid, int type, int samplesPerChannel, int bytesPerSample, int channels, int samplesPerSec, ByteBuffer buffer, long renderTimeMs, int avsync_type, int rtpTimestamp) {
331+
public boolean onPlaybackAudioFrameBeforeMixing(String channelId, int uid, int type, int samplesPerChannel, int bytesPerSample, int channels, int samplesPerSec, ByteBuffer buffer, long renderTimeMs, int avsync_type, int rtpTimestamp, long presentationMs) {
332332
return false;
333333
}
334334

Android/APIExample-Audio/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ android.enableJetifier=true
2121
# read enable simple filter section on README first before set this flag to TRUE
2222
simpleFilter = false
2323

24-
rtc_sdk_version = 4.5.0
24+
rtc_sdk_version = 4.5.1

Android/APIExample-Compose/app/src/main/java/io/agora/api/example/compose/samples/OriginAudioData.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,8 @@ private class OriginAudioDataRewriter(
354354
buffer: ByteBuffer?,
355355
renderTimeMs: Long,
356356
avsync_type: Int,
357-
rtpTimestamp: Int
357+
rtpTimestamp: Int,
358+
presentationMs: Long
358359
) = false
359360

360361
override fun getObservedAudioFramePosition() =

Android/APIExample-Compose/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ kotlin.code.style=official
2222
# thereby reducing the size of the R class for that library
2323
android.nonTransitiveRClass=true
2424

25-
rtc_sdk_version = 4.5.0
25+
rtc_sdk_version = 4.5.1

Android/APIExample-Compose/gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ composeBom = "2023.08.00"
1212
loggingInterceptor = "4.10.0"
1313
materialIconsExtended = "1.6.0"
1414
navigationCompose = "2.7.7"
15-
#agoraSdk = "4.5.0"
15+
#agoraSdk = "4.5.1"
1616
okhttp = "4.10.0"
1717

1818
[libraries]

Android/APIExample/agora-simple-filter/src/main/cpp/AgoraRtcKit/AgoraBase.h

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,10 @@ enum WARN_CODE_TYPE {
427427
* 1053: Audio Device Module: The settings are improper.
428428
*/
429429
WARN_ADM_IMPROPER_SETTINGS = 1053,
430+
/**
431+
* 1055: Audio Device Module: The audio device is in a pop state.
432+
*/
433+
WARN_ADM_POP_STATE = 1055,
430434
/**
431435
* 1322: No recording device.
432436
*/
@@ -2701,9 +2705,17 @@ enum AUDIO_SCENARIO_TYPE {
27012705
*/
27022706
AUDIO_SCENARIO_MEETING = 8,
27032707
/**
2704-
* 9: The number of enumerations.
2708+
* 9: AI Server.
2709+
*/
2710+
AUDIO_SCENARIO_AI_SERVER = 9,
2711+
/**
2712+
* 10: AI Client.
2713+
*/
2714+
AUDIO_SCENARIO_AI_CLIENT = 10,
2715+
/**
2716+
* 11: The number of enumerations.
27052717
*/
2706-
AUDIO_SCENARIO_NUM = 9,
2718+
AUDIO_SCENARIO_NUM = 11,
27072719
};
27082720

27092721
/**

Android/APIExample/agora-simple-filter/src/main/cpp/AgoraRtcKit/NGIAgoraLocalUser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,7 @@ class ILocalUserObserver {
15771577
/**
15781578
* datastream from this connection.
15791579
*/
1580-
virtual void onStreamMessage(user_id_t userId, int streamId, const char* data, size_t length) {}
1580+
virtual void onStreamMessage(user_id_t userId, int streamId, const char* data, size_t length, uint64_t sendTs = 0) {}
15811581

15821582
/**
15831583
* Occurs when the remote user state is updated.

0 commit comments

Comments
 (0)