Skip to content

Commit

Permalink
release 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
teamclouday committed Aug 29, 2022
1 parent 37cb208 commit ea56516
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
10 changes: 7 additions & 3 deletions Android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId "com.example.microphone"
minSdkVersion 23
targetSdkVersion 32
versionCode 7
versionName "1.8"
versionCode 8
versionName "1.9"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
Expand Down Expand Up @@ -46,6 +46,10 @@ android {
buildFeatures {
prefab true
}

lintOptions {
checkReleaseBuilds false
}
}

dependencies {
Expand All @@ -57,7 +61,7 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.5.0'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
2 changes: 1 addition & 1 deletion Android/app/src/main/cpp/AudioBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AudioBuffer {
public:
AudioBuffer(uint32_t capacity) {
_bufferCapacity = capacity;
_buffer.resize(_bufferSize);
_buffer.resize(capacity);
_regionLeft = _regionRight = 0;
_bufferSize = 0;
}
Expand Down
2 changes: 1 addition & 1 deletion Windows/AndroidMic/AndroidMic.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<ProductName>AndroidMic</ProductName>
<PublisherName>Teamclouday</PublisherName>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.8.0.0</ApplicationVersion>
<ApplicationVersion>1.9.0.0</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
Expand Down
2 changes: 1 addition & 1 deletion Windows/AndroidMic/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<value>0</value>
</setting>
<setting name="MainWindow_PlayerDesiredLatency" serializeAs="String">
<value>100</value>
<value>120</value>
</setting>
</AndroidMic.Properties.Settings>
</userSettings>
Expand Down
2 changes: 1 addition & 1 deletion Windows/AndroidMic/Library/Audio/AudioManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class AudioManager
private MMDeviceCollection devices;
private int selectedDeviceIdx;
private IWavePlayer player;
public volatile int PlayerDesiredLatency = 100; // in milliseconds
public volatile int PlayerDesiredLatency = 120; // in milliseconds
private readonly WaveFormat format;

private readonly BufferedWaveProvider bufferedProvider;
Expand Down
6 changes: 3 additions & 3 deletions Windows/AndroidMic/Library/Audio/Filters/FilterSpeexDSP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public enum ConfigTypes
ConfigVAD = 3
}

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

// configs specifically chosen for this app
private readonly int VAD_PROB_START = 85;
Expand Down
2 changes: 1 addition & 1 deletion Windows/AndroidMic/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Windows/AndroidMic/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<Value Profile="(Default)">0</Value>
</Setting>
<Setting Name="MainWindow_PlayerDesiredLatency" Type="System.Int32" Scope="User">
<Value Profile="(Default)">100</Value>
<Value Profile="(Default)">120</Value>
</Setting>
</Settings>
</SettingsFile>

0 comments on commit ea56516

Please sign in to comment.