diff --git a/codec2talkie/build.gradle b/codec2talkie/build.gradle
index 7e440cc3..47647825 100644
--- a/codec2talkie/build.gradle
+++ b/codec2talkie/build.gradle
@@ -10,8 +10,8 @@ android {
applicationId "com.radio.codec2talkie"
minSdkVersion 23
targetSdkVersion 30
- versionCode 168
- versionName "1.68"
+ versionCode 169
+ versionName "1.69"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
diff --git a/codec2talkie/src/main/java/com/radio/codec2talkie/protocol/AudioOpus.java b/codec2talkie/src/main/java/com/radio/codec2talkie/protocol/AudioOpus.java
index 986492e0..58b6f2c5 100644
--- a/codec2talkie/src/main/java/com/radio/codec2talkie/protocol/AudioOpus.java
+++ b/codec2talkie/src/main/java/com/radio/codec2talkie/protocol/AudioOpus.java
@@ -2,7 +2,6 @@
import android.content.Context;
import android.content.SharedPreferences;
-import android.text.TextUtils;
import android.util.Log;
import androidx.preference.PreferenceManager;
@@ -10,7 +9,6 @@
import com.radio.codec2talkie.protocol.message.TextMessage;
import com.radio.codec2talkie.protocol.position.Position;
import com.radio.codec2talkie.settings.PreferenceKeys;
-import com.radio.codec2talkie.tools.DebugTools;
import com.radio.codec2talkie.transport.Transport;
import com.radio.opus.Opus;
@@ -48,18 +46,17 @@ public void initialize(Transport transport, Context context, ProtocolCallback pr
int complexity = Integer.parseInt(sharedPreferences.getString(PreferenceKeys.OPUS_COMPLEXITY, "5"));
float pcmFrameDuration = Float.parseFloat(sharedPreferences.getString(PreferenceKeys.OPUS_FRAME_SIZE, "40"));
- int superFrameSize = Integer.parseInt(sharedPreferences.getString(PreferenceKeys.CODEC2_TX_FRAME_MAX_SIZE, "48"));
_pcmFrameSize = (int)(SAMPLE_RATE / 1000 * pcmFrameDuration);
_audioBufferSize = 10*_pcmFrameSize;
_playbackAudioBuffer = new short[_audioBufferSize];
- _recordAudioEncodedBuffer = new byte[superFrameSize];
+ _recordAudioEncodedBuffer = new byte[_audioBufferSize];
_opusCon = Opus.create(SAMPLE_RATE, 1, Opus.OPUS_APPLICATION_VOIP, bitRate, complexity);
if (_opusCon == 0) {
Log.e(TAG, "Failed to create opus");
}
- Log.i(TAG, "Opus is initialized, pcm frame size: " + _pcmFrameSize + ", super frame size: " + superFrameSize);
+ Log.i(TAG, "Opus is initialized, pcm frame size: " + _pcmFrameSize + ", buffer size: " + _audioBufferSize);
}
@Override
diff --git a/codec2talkie/src/main/res/values/strings.xml b/codec2talkie/src/main/res/values/strings.xml
index 8127d66b..21b030cd 100644
--- a/codec2talkie/src/main/res/values/strings.xml
+++ b/codec2talkie/src/main/res/values/strings.xml
@@ -180,7 +180,7 @@
Modem reboot requested
Maximum super frame size (bytes)
- Multiple audio codec encoded samples are aggregated into super frame not larger than this value
+ Multiple Codec2 encoded samples are aggregated into super frame not larger than this value
USB settings
Serial data bits
diff --git a/codec2talkie/src/main/res/xml/preferences.xml b/codec2talkie/src/main/res/xml/preferences.xml
index 7f6e23c7..d30d5589 100644
--- a/codec2talkie/src/main/res/xml/preferences.xml
+++ b/codec2talkie/src/main/res/xml/preferences.xml
@@ -133,14 +133,7 @@
app:summary="@string/codec_type_settings_summary"
app:fragment="com.radio.codec2talkie.settings.SettingsActivity$SettingsCodecFragment">
-
-
-
-
+
+
+
+