Lines Matching refs:mode

51  * In Streaming mode, the application writes a continuous stream of data to the AudioTrack, using
54 * mode is most useful when playing blocks of audio data that for instance are:
63 * The static mode should be chosen when dealing with short sounds that fit in memory and
64 * that need to be played with the smallest latency possible. The static mode will
71 * For an AudioTrack using the static mode, this size is the maximum size of the sound that can
73 * For the streaming mode, data will be written to the audio sink in chunks of
109 * Creation mode where audio data is transferred from Java to the native layer
114 * Creation mode where audio data is streamed from Java to the native layer
181 * The write mode indicating the write operation will block until all data has been written,
186 * The write mode indicating the write operation will return immediately after
302 * If track's creation mode is {@link #MODE_STREAM}, you can write data into
305 * If the track's creation mode is {@link #MODE_STATIC},
308 * for the successful creation of an AudioTrack instance in streaming mode. Using values
310 * @param mode streaming or static buffer. See {@link #MODE_STATIC} and {@link #MODE_STREAM}
314 int bufferSizeInBytes, int mode)
317 bufferSizeInBytes, mode, AudioSystem.AUDIO_SESSION_ALLOCATE);
345 * from for playback. If using the AudioTrack in streaming mode, you can write data into
346 * this buffer in smaller chunks than this size. If using the AudioTrack in static mode,
349 * for the successful creation of an AudioTrack instance in streaming mode. Using values
351 * @param mode streaming or static buffer. See {@link #MODE_STATIC} and {@link #MODE_STREAM}
356 int bufferSizeInBytes, int mode, int sessionId)
368 mode, sessionId);
378 * from for playback. If using the AudioTrack in streaming mode, you can write data into
379 * this buffer in smaller chunks than this size. If using the AudioTrack in static mode,
382 * for the successful creation of an AudioTrack instance in streaming mode. Using values
384 * @param mode streaming or static buffer. See {@link #MODE_STATIC} and {@link #MODE_STREAM}.
392 int mode, int sessionId)
428 audioParamCheck(rate, channelMask, encoding, mode);
484 int channelConfig, int audioFormat, int mode) {
530 // audio load mode
531 if (((mode != MODE_STREAM) && (mode != MODE_STATIC)) ||
532 ((mode != MODE_STREAM) && !AudioFormat.isEncodingLinearPcm(mAudioFormat))) {
533 throw new IllegalArgumentException("Invalid mode.");
535 mDataLoadMode = mode;
729 * If track's creation mode is {@link #MODE_STATIC},
731 * If track's creation mode is {@link #MODE_STREAM},
793 * object to be created in the {@link #MODE_STREAM} mode. Note that this size doesn't
865 * If you need to track timestamps during initial warmup or after a routing or mode change,
1065 * and must use the {@link #MODE_STATIC} mode.
1087 * and must use the {@link #MODE_STATIC} mode.
1134 * If track's creation mode is {@link #MODE_STATIC}, you must have called write() prior.
1155 final int mode = mAppOps.checkAudioOperation(AppOpsManager.OP_PLAY_AUDIO, usage,
1157 return mode != AppOpsManager.MODE_ALLOWED;
1165 * When used on an instance created in {@link #MODE_STREAM} mode, audio will stop playing
1213 * or if the track's creation mode is not {@link #MODE_STREAM}.
1224 * Writes the audio data to the audio sink for playback (streaming mode),
1225 * or copies audio data for later playback (static buffer mode).
1226 * In streaming mode, will block until all data has been written to the audio sink.
1227 * In static buffer mode, copies the data to the buffer starting at offset 0.
1270 * Writes the audio data to the audio sink for playback (streaming mode),
1271 * or copies audio data for later playback (static buffer mode).
1272 * In streaming mode, will block until all data has been written to the audio sink.
1273 * In static buffer mode, copies the data to the buffer starting at offset 0.
1313 * Writes the audio data to the audio sink for playback (streaming mode),
1314 * or copies audio data for later playback (static buffer mode).
1315 * In static buffer mode, copies the data to the buffer starting at offset 0,
1316 * and the write mode is ignored.
1317 * In streaming mode, the blocking behavior will depend on the write mode.
1337 * effect in static mode.
1360 Log.e(TAG, "AudioTrack.write() called with invalid blocking mode");
1386 * Writes the audio data to the audio sink for playback (streaming mode),
1387 * or copies audio data for later playback (static buffer mode).
1388 * In static buffer mode, copies the data to the buffer starting at its 0 offset, and the write
1389 * mode is ignored.
1390 * In streaming mode, the blocking behavior will depend on the write mode.
1399 * effect in static mode.
1416 Log.e(TAG, "AudioTrack.write() called with invalid blocking mode");
1454 * The track's creation mode must be {@link #MODE_STATIC}.
1637 int buffSizeInBytes, int mode, int[] sessionId);