OSDN Git Service

Explain ENCODING_PCM_FLOAT
authorGlenn Kasten <gkasten@google.com>
Sat, 31 Oct 2015 01:23:45 +0000 (18:23 -0700)
committerGlenn Kasten <gkasten@google.com>
Sat, 31 Oct 2015 01:27:02 +0000 (18:27 -0700)
Change-Id: Icf680f65f07023ca6e416a1ef6067132daf607b9

media/java/android/media/AudioDeviceInfo.java

index 7f22b8a..45529ef 100644 (file)
@@ -221,8 +221,9 @@ public final class AudioDeviceInfo {
      * @return An array of audio encodings (e.g. {@link AudioFormat#ENCODING_PCM_16BIT},
      * {@link AudioFormat#ENCODING_PCM_FLOAT}) supported by the audio device.
      * <code>ENCODING_PCM_FLOAT</code> indicates the device supports more
-     * than 16 bits of integer precision.  Specifying <code>ENCODING_PCM_FLOAT</code>
-     * with {@link AudioTrack} or {@link AudioRecord} can preserve at least 24 bits of
+     * than 16 bits of integer precision.  As there is no AudioFormat constant
+     * specifically defined for 24-bit PCM, the value <code>ENCODING_PCM_FLOAT</code>
+     * indicates that {@link AudioTrack} or {@link AudioRecord} can preserve at least 24 bits of
      * integer precision to that device.
      *
      * @see AudioFormat