Lines Matching refs:mode

37  * In Streaming mode, the application writes a continuous stream of data to the AudioTrack, using
40 * mode is most useful when playing blocks of audio data that for instance are:
49 * The static mode should be chosen when dealing with short sounds that fit in memory and
50 * that need to be played with the smallest latency possible. The static mode will
57 * For an AudioTrack using the static mode, this size is the maximum size of the sound that can
59 * For the streaming mode, data will be written to the hardware in chunks of
81 * Creation mode where audio data is transferred from Java to the native layer
86 * Creation mode where audio data is streamed from Java to the native layer
255 * from for playback. If using the AudioTrack in streaming mode, you can write data into
256 * this buffer in smaller chunks than this size. If using the AudioTrack in static mode,
259 * for the successful creation of an AudioTrack instance in streaming mode. Using values
261 * @param mode streaming or static buffer. See {@link #MODE_STATIC} and {@link #MODE_STREAM}
265 int bufferSizeInBytes, int mode)
268 bufferSizeInBytes, mode, 0);
295 * from for playback. If using the AudioTrack in streaming mode, you can write data into
296 * this buffer in smaller chunks than this size. If using the AudioTrack in static mode,
299 * for the successful creation of an AudioTrack instance in streaming mode. Using values
301 * @param mode streaming or static buffer. See {@link #MODE_STATIC} and {@link #MODE_STREAM}
306 int bufferSizeInBytes, int mode, int sessionId)
315 audioParamCheck(streamType, sampleRateInHz, channelConfig, audioFormat, mode);
363 int channelConfig, int audioFormat, int mode) {
433 // audio load mode
434 if ( (mode != MODE_STREAM) && (mode != MODE_STATIC) ) {
435 throw(new IllegalArgumentException("Invalid mode."));
437 mDataLoadMode = mode;
645 * object to be created in the {@link #MODE_STREAM} mode. Note that this size doesn't
894 * When used on an instance created in {@link #MODE_STREAM} mode, audio will stop playing
1208 int buffSizeInBytes, int mode, int[] sessionId);