Lines Matching defs:read

53  * the following three methods:  {@link #read(byte[],int, int)}, {@link #read(short[], int, int)}
54 * or {@link #read(ByteBuffer, int)}. The choice of which method to use will be based
59 * been read yet. Data should be read from the audio hardware in chunks of sizes inferior to
142 * The read mode indicating the read operation will block until all data
143 * requested has been read.
148 * The read mode indicating the read operation will return immediately after
275 * to during the recording. New audio data can be read from this buffer in smaller chunks
307 * to during the recording. New audio data can be read from this buffer in smaller chunks
553 * during the recording. New audio data can be read from this buffer in smaller chunks
1061 * @return zero or the positive number of bytes that were read, or one of the following
1068 * successfully transferred. In this case, the error is returned at the next read()</li>
1072 public int read(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes) {
1073 return read(audioData, offsetInBytes, sizeInBytes, READ_BLOCKING);
1087 * <br>With {@link #READ_BLOCKING}, the read will block until all the requested data
1088 * is read.
1089 * <br>With {@link #READ_NON_BLOCKING}, the read will return immediately after
1091 * @return zero or the positive number of bytes that were read, or one of the following
1099 * successfully transferred. In this case, the error is returned at the next read()</li>
1103 public int read(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes,
1110 Log.e(TAG, "AudioRecord.read() called with invalid blocking mode");
1133 * @return zero or the positive number of shorts that were read, or one of the following
1141 * successfully transferred. In this case, the error is returned at the next read()</li>
1145 public int read(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts) {
1146 return read(audioData, offsetInShorts, sizeInShorts, READ_BLOCKING);
1159 * <br>With {@link #READ_BLOCKING}, the read will block until all the requested data
1160 * is read.
1161 * <br>With {@link #READ_NON_BLOCKING}, the read will return immediately after
1163 * @return zero or the positive number of shorts that were read, or one of the following
1171 * successfully transferred. In this case, the error is returned at the next read()</li>
1175 public int read(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts,
1182 Log.e(TAG, "AudioRecord.read() called with invalid blocking mode");
1206 * <br>With {@link #READ_BLOCKING}, the read will block until all the requested data
1207 * is read.
1208 * <br>With {@link #READ_NON_BLOCKING}, the read will return immediately after
1210 * @return zero or the positive number of floats that were read, or one of the following
1218 * successfully transferred. In this case, the error is returned at the next read()</li>
1222 public int read(@NonNull float[] audioData, int offsetInFloats, int sizeInFloats,
1225 Log.e(TAG, "AudioRecord.read() called in invalid state STATE_UNINITIALIZED");
1230 Log.e(TAG, "AudioRecord.read(float[] ...) requires format ENCODING_PCM_FLOAT");
1235 Log.e(TAG, "AudioRecord.read() called with invalid blocking mode");
1261 * @return zero or the positive number of bytes that were read, or one of the following
1269 * successfully transferred. In this case, the error is returned at the next read()</li>
1273 public int read(@NonNull ByteBuffer audioBuffer, int sizeInBytes) {
1274 return read(audioBuffer, sizeInBytes, READ_BLOCKING);
1290 * <br>With {@link #READ_BLOCKING}, the read will block until all the requested data
1291 * is read.
1292 * <br>With {@link #READ_NON_BLOCKING}, the read will return immediately after
1294 * @return zero or the positive number of bytes that were read, or one of the following
1302 * successfully transferred. In this case, the error is returned at the next read()</li>
1306 public int read(@NonNull ByteBuffer audioBuffer, int sizeInBytes, @ReadMode int readMode) {
1312 Log.e(TAG, "AudioRecord.read() called with invalid blocking mode");