Merge branch 'audiorecorder-3.0.19'
This commit is contained in:
commit
e108569092
2 changed files with 4 additions and 2 deletions
|
|
@ -8,8 +8,8 @@ android {
|
|||
applicationId "com.github.axet.audiorecorder"
|
||||
minSdkVersion 9
|
||||
targetSdkVersion 23
|
||||
versionCode 183
|
||||
versionName "3.0.18"
|
||||
versionCode 184
|
||||
versionName "3.0.19"
|
||||
}
|
||||
signingConfigs {
|
||||
release {
|
||||
|
|
|
|||
|
|
@ -620,6 +620,7 @@ public class RecordingActivity extends AppCompatActivity {
|
|||
if (min <= 0) {
|
||||
Toast.makeText(RecordingActivity.this, "Unable to initialize AudioRecord: Bad audio values", Toast.LENGTH_SHORT).show();
|
||||
finish();
|
||||
return;
|
||||
}
|
||||
rec = new AudioRecord(MediaRecorder.AudioSource.MIC, sampleRate, c, Sound.DEFAULT_AUDIOFORMAT, min * 2);
|
||||
if (rec.getState() != AudioRecord.STATE_INITIALIZED) {
|
||||
|
|
@ -627,6 +628,7 @@ public class RecordingActivity extends AppCompatActivity {
|
|||
if (rec.getState() != AudioRecord.STATE_INITIALIZED) {
|
||||
Toast.makeText(RecordingActivity.this, "Unable to initialize AudioRecord", Toast.LENGTH_SHORT).show();
|
||||
finish();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue