Lines Matching defs:read

47  * the following three methods:  {@link #read(byte[],int, int)}, {@link #read(short[], int, int)}
48 * or {@link #read(ByteBuffer, int)}. The choice of which method to use will be based
53 * been read yet. Data should be read from the audio hardware in chunks of sizes inferior to
136 * The read mode indicating the read operation will block until all data
137 * requested has been read.
142 * The read mode indicating the read operation will return immediately after
269 * to during the recording. New audio data can be read from this buffer in smaller chunks
301 * to during the recording. New audio data can be read from this buffer in smaller chunks
547 * during the recording. New audio data can be read from this buffer in smaller chunks
1055 * @return zero or the positive number of bytes that were read, or one of the following
1062 * successfully transferred. In this case, the error is returned at the next read()</li>
1066 public int read(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes) {
1067 return read(audioData, offsetInBytes, sizeInBytes, READ_BLOCKING);
1081 * <br>With {@link #READ_BLOCKING}, the read will block until all the requested data
1082 * is read.
1083 * <br>With {@link #READ_NON_BLOCKING}, the read will return immediately after
1085 * @return zero or the positive number of bytes that were read, or one of the following
1093 * successfully transferred. In this case, the error is returned at the next read()</li>
1097 public int read(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes,
1104 Log.e(TAG, "AudioRecord.read() called with invalid blocking mode");
1127 * @return zero or the positive number of shorts that were read, or one of the following
1135 * successfully transferred. In this case, the error is returned at the next read()</li>
1139 public int read(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts) {
1140 return read(audioData, offsetInShorts, sizeInShorts, READ_BLOCKING);
1153 * <br>With {@link #READ_BLOCKING}, the read will block until all the requested data
1154 * is read.
1155 * <br>With {@link #READ_NON_BLOCKING}, the read will return immediately after
1157 * @return zero or the positive number of shorts that were read, or one of the following
1165 * successfully transferred. In this case, the error is returned at the next read()</li>
1169 public int read(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts,
1176 Log.e(TAG, "AudioRecord.read() called with invalid blocking mode");
1200 * <br>With {@link #READ_BLOCKING}, the read will block until all the requested data
1201 * is read.
1202 * <br>With {@link #READ_NON_BLOCKING}, the read will return immediately after
1204 * @return zero or the positive number of floats that were read, or one of the following
1212 * successfully transferred. In this case, the error is returned at the next read()</li>
1216 public int read(@NonNull float[] audioData, int offsetInFloats, int sizeInFloats,
1219 Log.e(TAG, "AudioRecord.read() called in invalid state STATE_UNINITIALIZED");
1224 Log.e(TAG, "AudioRecord.read(float[] ...) requires format ENCODING_PCM_FLOAT");
1229 Log.e(TAG, "AudioRecord.read() called with invalid blocking mode");
1255 * @return zero or the positive number of bytes that were read, or one of the following
1263 * successfully transferred. In this case, the error is returned at the next read()</li>
1267 public int read(@NonNull ByteBuffer audioBuffer, int sizeInBytes) {
1268 return read(audioBuffer, sizeInBytes, READ_BLOCKING);
1284 * <br>With {@link #READ_BLOCKING}, the read will block until all the requested data
1285 * is read.
1286 * <br>With {@link #READ_NON_BLOCKING}, the read will return immediately after
1288 * @return zero or the positive number of bytes that were read, or one of the following
1296 * successfully transferred. In this case, the error is returned at the next read()</li>
1300 public int read(@NonNull ByteBuffer audioBuffer, int sizeInBytes, @ReadMode int readMode) {
1306 Log.e(TAG, "AudioRecord.read() called with invalid blocking mode");