Merge "Fix JAVA doc for AudioRecord and AudioTrack Builder" into nyc-dev
This commit is contained in:
@@ -467,11 +467,11 @@ public class AudioRecord implements AudioRouting
|
|||||||
* <p>
|
* <p>
|
||||||
* If the audio source is not set with {@link #setAudioSource(int)},
|
* If the audio source is not set with {@link #setAudioSource(int)},
|
||||||
* {@link MediaRecorder.AudioSource#DEFAULT} is used.
|
* {@link MediaRecorder.AudioSource#DEFAULT} is used.
|
||||||
* <br>If the audio format is not specified or is incomplete, its sample rate will be the
|
* <br>If the audio format is not specified or is incomplete, its channel configuration will be
|
||||||
* default output sample rate of the device (see
|
|
||||||
* {@link AudioManager#PROPERTY_OUTPUT_SAMPLE_RATE}), its channel configuration will be
|
|
||||||
* {@link AudioFormat#CHANNEL_IN_MONO}, and the encoding will be
|
* {@link AudioFormat#CHANNEL_IN_MONO}, and the encoding will be
|
||||||
* {@link AudioFormat#ENCODING_PCM_16BIT}.
|
* {@link AudioFormat#ENCODING_PCM_16BIT}.
|
||||||
|
* The sample rate will depend on the device actually selected for capture and can be queried
|
||||||
|
* with {@link #getSampleRate()} method.
|
||||||
* <br>If the buffer size is not specified with {@link #setBufferSizeInBytes(int)},
|
* <br>If the buffer size is not specified with {@link #setBufferSizeInBytes(int)},
|
||||||
* the minimum buffer size for the source is used.
|
* the minimum buffer size for the source is used.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -619,11 +619,11 @@ public class AudioTrack extends PlayerBase
|
|||||||
* <p>
|
* <p>
|
||||||
* If the audio attributes are not set with {@link #setAudioAttributes(AudioAttributes)},
|
* If the audio attributes are not set with {@link #setAudioAttributes(AudioAttributes)},
|
||||||
* attributes comprising {@link AudioAttributes#USAGE_MEDIA} will be used.
|
* attributes comprising {@link AudioAttributes#USAGE_MEDIA} will be used.
|
||||||
* <br>If the audio format is not specified or is incomplete, its sample rate will be the
|
* <br>If the audio format is not specified or is incomplete, its channel configuration will be
|
||||||
* default output sample rate of the device (see
|
|
||||||
* {@link AudioManager#PROPERTY_OUTPUT_SAMPLE_RATE}), its channel configuration will be
|
|
||||||
* {@link AudioFormat#CHANNEL_OUT_STEREO} and the encoding will be
|
* {@link AudioFormat#CHANNEL_OUT_STEREO} and the encoding will be
|
||||||
* {@link AudioFormat#ENCODING_PCM_16BIT}.
|
* {@link AudioFormat#ENCODING_PCM_16BIT}.
|
||||||
|
* The sample rate will depend on the device actually selected for playback and can be queried
|
||||||
|
* with {@link #getSampleRate()} method.
|
||||||
* <br>If the buffer size is not specified with {@link #setBufferSizeInBytes(int)},
|
* <br>If the buffer size is not specified with {@link #setBufferSizeInBytes(int)},
|
||||||
* and the mode is {@link AudioTrack#MODE_STREAM}, the minimum buffer size is used.
|
* and the mode is {@link AudioTrack#MODE_STREAM}, the minimum buffer size is used.
|
||||||
* <br>If the transfer mode is not specified with {@link #setTransferMode(int)},
|
* <br>If the transfer mode is not specified with {@link #setTransferMode(int)},
|
||||||
|
|||||||
Reference in New Issue
Block a user