making Android less unhappy

This commit is contained in:
rusefillc 2021-03-25 16:30:01 -04:00
parent 271f7a373a
commit f71de185da
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,7 @@ public class SoundBroadcast {
Thread streamThread = new Thread(new Runnable() {
@Override
public void run() {
/*
AudioRecord recorder = new AudioRecord(MediaRecorder.AudioSource.MIC, sampleRate, channelConfig, audioFormat, minBufSize * 10);
if (NoiseSuppressor.isAvailable()) {
NoiseSuppressor.create(recorder.getAudioSessionId()).setEnabled(true);
@ -48,6 +48,7 @@ public class SoundBroadcast {
int bytes = recorder.read(buffer, 0, buffer.length);
}
*/
}
});
streamThread.start();