Reenable build errors on lintFailure
This commit is contained in:
@@ -20,10 +20,10 @@ android {
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
abortOnError false
|
||||
abortOnError true
|
||||
warning "MissingTranslation"
|
||||
}
|
||||
|
||||
|
||||
dependencies {
|
||||
implementation "com.android.support:support-compat:26.1.0"
|
||||
}
|
||||
|
||||
@@ -66,13 +66,19 @@ public class MonitorActivity extends Activity {
|
||||
final int audioEncoding = AudioCodecDefines.ENCODING;
|
||||
|
||||
final int bufferSize = AudioRecord.getMinBufferSize(frequency, channelConfiguration, audioEncoding);
|
||||
final AudioRecord audioRecord = new AudioRecord(
|
||||
final AudioRecord audioRecord;
|
||||
try {
|
||||
audioRecord = new AudioRecord(
|
||||
MediaRecorder.AudioSource.MIC,
|
||||
frequency,
|
||||
channelConfiguration,
|
||||
audioEncoding,
|
||||
bufferSize
|
||||
);
|
||||
} catch (SecurityException e) {
|
||||
// This should never happen, we asked for permission before
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
final int pcmBufferSize = bufferSize*2;
|
||||
final short[] pcmBuffer = new short[pcmBufferSize];
|
||||
|
||||
Reference in New Issue
Block a user