Skip to content
This repository has been archived by the owner on Aug 26, 2019. It is now read-only.

Commit

Permalink
delete some useless info(2.0.0 lib)
Browse files Browse the repository at this point in the history
  • Loading branch information
jokermonn committed Aug 29, 2017
1 parent 08583de commit fc45562
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/

public class AudioRecordManager {
private static AudioRecordManager mInstance;
public File file;
private AudioRecord mRecorder;
private DataOutputStream dos;
Expand All @@ -31,10 +30,6 @@ public void run() {
android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_URGENT_AUDIO);
int bytesRecord;
byte[] tempBuffer = new byte[bufferSize];
// if (mRecorder.getState() != AudioRecord.STATE_INITIALIZED) {
// stopRecord();
// return;
// }
mRecorder.startRecording();
while (isStart) {
if (mRecorder != null) {
Expand Down Expand Up @@ -65,7 +60,6 @@ public AudioRecordManager() {
AudioFormat.ENCODING_PCM_16BIT, bufferSize * 2);
}


public boolean getSuccess() {
return length > 0;
}
Expand Down

0 comments on commit fc45562

Please sign in to comment.