b.java 996 Bytes
package com.instabug.library.internal.b;

import android.media.MediaRecorder;
import com.instabug.library.util.InstabugSDKLogger;
import java.io.IOException;

public class b
{
  private final String a;
  private MediaRecorder b = null;
  
  public b(String paramString)
  {
    this.a = paramString;
  }
  
  public void a()
  {
    this.b = new MediaRecorder();
    this.b.setAudioSource(1);
    this.b.setOutputFormat(2);
    this.b.setOutputFile(this.a);
    this.b.setAudioEncoder(3);
    try
    {
      this.b.prepare();
      this.b.start();
      return;
    }
    catch (IOException localIOException)
    {
      InstabugSDKLogger.e(this, "Recording audio failed", localIOException);
    }
  }
  
  public void b()
  {
    this.b.stop();
    this.b.reset();
    this.b.release();
    this.b = null;
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/instabug/library/internal/b/b.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */