Remove unused IOException
IOException may not be thrown from this method.
This commit is contained in:
parent
eca8766545
commit
2380879376
1 changed files with 1 additions and 2 deletions
|
@ -14,7 +14,6 @@ import android.media.MediaRecorder;
|
|||
import android.os.Build;
|
||||
import android.os.SystemClock;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.ByteBuffer;
|
||||
|
||||
public final class AudioCapture {
|
||||
|
@ -110,7 +109,7 @@ public final class AudioCapture {
|
|||
}
|
||||
|
||||
@TargetApi(Build.VERSION_CODES.N)
|
||||
public int read(ByteBuffer directBuffer, int size, MediaCodec.BufferInfo outBufferInfo) throws IOException {
|
||||
public int read(ByteBuffer directBuffer, int size, MediaCodec.BufferInfo outBufferInfo) {
|
||||
int r = recorder.read(directBuffer, size);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
|
|
Loading…
Reference in a new issue