Skip to content

Commit ea56516

Browse files
committed
release 1.9.0
1 parent 37cb208 commit ea56516

File tree

8 files changed

+16
-12
lines changed

8 files changed

+16
-12
lines changed

Android/app/build.gradle

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ android {
1111
applicationId "com.example.microphone"
1212
minSdkVersion 23
1313
targetSdkVersion 32
14-
versionCode 7
15-
versionName "1.8"
14+
versionCode 8
15+
versionName "1.9"
1616
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1717
externalNativeBuild {
1818
cmake {
@@ -46,6 +46,10 @@ android {
4646
buildFeatures {
4747
prefab true
4848
}
49+
50+
lintOptions {
51+
checkReleaseBuilds false
52+
}
4953
}
5054

5155
dependencies {
@@ -57,7 +61,7 @@ dependencies {
5761
implementation 'androidx.appcompat:appcompat:1.5.0'
5862
implementation 'com.google.android.material:material:1.6.1'
5963
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
60-
testImplementation 'junit:junit:'
64+
testImplementation 'junit:junit:4.13.2'
6165
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
6266
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
6367
}

Android/app/src/main/cpp/AudioBuffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class AudioBuffer {
1414
public:
1515
AudioBuffer(uint32_t capacity) {
1616
_bufferCapacity = capacity;
17-
_buffer.resize(_bufferSize);
17+
_buffer.resize(capacity);
1818
_regionLeft = _regionRight = 0;
1919
_bufferSize = 0;
2020
}

Windows/AndroidMic/AndroidMic.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<ProductName>AndroidMic</ProductName>
3131
<PublisherName>Teamclouday</PublisherName>
3232
<ApplicationRevision>0</ApplicationRevision>
33-
<ApplicationVersion>1.8.0.0</ApplicationVersion>
33+
<ApplicationVersion>1.9.0.0</ApplicationVersion>
3434
<UseApplicationTrust>false</UseApplicationTrust>
3535
<PublishWizardCompleted>true</PublishWizardCompleted>
3636
<BootstrapperEnabled>true</BootstrapperEnabled>

Windows/AndroidMic/App.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<value>0</value>
6868
</setting>
6969
<setting name="MainWindow_PlayerDesiredLatency" serializeAs="String">
70-
<value>100</value>
70+
<value>120</value>
7171
</setting>
7272
</AndroidMic.Properties.Settings>
7373
</userSettings>

Windows/AndroidMic/Library/Audio/AudioManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class AudioManager
3535
private MMDeviceCollection devices;
3636
private int selectedDeviceIdx;
3737
private IWavePlayer player;
38-
public volatile int PlayerDesiredLatency = 100; // in milliseconds
38+
public volatile int PlayerDesiredLatency = 120; // in milliseconds
3939
private readonly WaveFormat format;
4040

4141
private readonly BufferedWaveProvider bufferedProvider;

Windows/AndroidMic/Library/Audio/Filters/FilterSpeexDSP.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ public enum ConfigTypes
2222
ConfigVAD = 3
2323
}
2424

25-
private readonly int FRAME_SIZE = 800; // 50ms (0.05 * 16000)
26-
private readonly int FRAME_SIZE_BYTES = 800 * 2; // in bytes
27-
private readonly int FILTER_LEN = 3200; // 100-500 ms (0.2 * 16000)
25+
private readonly int FRAME_SIZE = 4000; // 250ms (0.25 * 16000)
26+
private readonly int FRAME_SIZE_BYTES = 4000 * 2; // in bytes
27+
private readonly int FILTER_LEN = 4000; // 100-500 ms (0.25 * 16000)
2828

2929
// configs specifically chosen for this app
3030
private readonly int VAD_PROB_START = 85;

Windows/AndroidMic/Properties/Settings.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Windows/AndroidMic/Properties/Settings.settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<Value Profile="(Default)">0</Value>
5252
</Setting>
5353
<Setting Name="MainWindow_PlayerDesiredLatency" Type="System.Int32" Scope="User">
54-
<Value Profile="(Default)">100</Value>
54+
<Value Profile="(Default)">120</Value>
5555
</Setting>
5656
</Settings>
5757
</SettingsFile>

0 commit comments

Comments
 (0)