making Android less unhappy
This commit is contained in:
parent
271f7a373a
commit
f71de185da
|
@ -32,7 +32,7 @@ public class SoundBroadcast {
|
||||||
Thread streamThread = new Thread(new Runnable() {
|
Thread streamThread = new Thread(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
/*
|
||||||
AudioRecord recorder = new AudioRecord(MediaRecorder.AudioSource.MIC, sampleRate, channelConfig, audioFormat, minBufSize * 10);
|
AudioRecord recorder = new AudioRecord(MediaRecorder.AudioSource.MIC, sampleRate, channelConfig, audioFormat, minBufSize * 10);
|
||||||
if (NoiseSuppressor.isAvailable()) {
|
if (NoiseSuppressor.isAvailable()) {
|
||||||
NoiseSuppressor.create(recorder.getAudioSessionId()).setEnabled(true);
|
NoiseSuppressor.create(recorder.getAudioSessionId()).setEnabled(true);
|
||||||
|
@ -48,6 +48,7 @@ public class SoundBroadcast {
|
||||||
int bytes = recorder.read(buffer, 0, buffer.length);
|
int bytes = recorder.read(buffer, 0, buffer.length);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
streamThread.start();
|
streamThread.start();
|
||||||
|
|
Loading…
Reference in New Issue