public static interface ShadowAudioRecord.AudioRecordSource
ShadowAudioRecord
.Modifier and Type | Method | Description |
---|---|---|
default int |
readInByteArray(byte[] audioData,
int offsetInBytes,
int sizeInBytes,
boolean isBlocking) |
Provides backing data for
AudioRecord.read(byte[], int, int) and AudioRecord.read(byte[], int, int, int) . |
default int |
readInDirectBuffer(ByteBuffer buffer,
int sizeInBytes,
boolean isBlocking) |
Provides backing data for
AudioRecord.read(byte[], int, int) and AudioRecord.read(byte[], int, int, int) . |
default int |
readInFloatArray(float[] audioData,
int offsetInFloats,
int sizeInFloats,
boolean isBlocking) |
Provides backing data for
AudioRecord.read(float[], int, int, int) . |
default int |
readInShortArray(short[] audioData,
int offsetInShorts,
int sizeInShorts,
boolean isBlocking) |
Provides backing data for
AudioRecord.read(short[], int, int) and AudioRecord.read(short[], int, int, int) . |
default int readInByteArray(byte[] audioData, int offsetInBytes, int sizeInBytes, boolean isBlocking)
AudioRecord.read(byte[], int, int)
and AudioRecord.read(byte[], int, int, int)
.default int readInShortArray(short[] audioData, int offsetInShorts, int sizeInShorts, boolean isBlocking)
AudioRecord.read(short[], int, int)
and AudioRecord.read(short[], int, int, int)
.default int readInFloatArray(float[] audioData, int offsetInFloats, int sizeInFloats, boolean isBlocking)
AudioRecord.read(float[], int, int, int)
.default int readInDirectBuffer(ByteBuffer buffer, int sizeInBytes, boolean isBlocking)
AudioRecord.read(byte[], int, int)
and AudioRecord.read(byte[], int, int, int)
.