File tree Expand file tree Collapse file tree 8 files changed +16
-12
lines changed
Expand file tree Collapse file tree 8 files changed +16
-12
lines changed Original file line number Diff line number Diff 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
5155dependencies {
@@ -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}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class AudioBuffer {
1414public:
1515 AudioBuffer (uint32_t capacity) {
1616 _bufferCapacity = capacity;
17- _buffer.resize (_bufferSize );
17+ _buffer.resize (capacity );
1818 _regionLeft = _regionRight = 0 ;
1919 _bufferSize = 0 ;
2020 }
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments