Skip to content

Commit a37cd6c

Browse files
committed
- VoIP fix
- VoIP Android optimization
1 parent 0a61dea commit a37cd6c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Spixi/Platforms/Android/SAudioRecorder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private void initRecorder()
127127
{
128128
Android.Media.Encoding encoding = Android.Media.Encoding.Pcm16bit;
129129

130-
shortsBuffer = new short[bufferSize];
130+
shortsBuffer = new short[bufferSize / 2];
131131
buffer = new byte[bufferSize];
132132

133133
audioRecorder = new AudioRecord(
@@ -410,7 +410,7 @@ private void sendAvailableData()
410410
total_size += buf.Length;
411411
}
412412

413-
if (total_size >= 300)
413+
if (total_size >= 150)
414414
{
415415
data_to_send = new byte[total_size];
416416
int data_written = 0;

Spixi/Utils/SpixiContentPage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public void displayAppRequests()
261261
{
262262
Friend f = VoIPManager.currentCallContact;
263263
string text = SpixiLocalization._SL("global-call-incoming") + " - " + f.nickname;
264-
Utils.sendUiCommand(this, "addCallAppRequest", Crypto.hashToString(VoIPManager.currentCallSessionId), text);
264+
Utils.sendUiCommand(this, "addCallAppRequest", f.walletAddress.ToString(), Crypto.hashToString(VoIPManager.currentCallSessionId), text);
265265
}
266266
}
267267
}

0 commit comments

Comments
 (0)