summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2021-06-30 08:33:22 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-06-30 08:33:22 +0000
commit1528bc72fc2687418d5be0c1a81075e3320575c9 (patch)
treee3c3d53f417b1ae8efdecd38177e3c119e827358
parenta03cc0627a0ce101625bc3325255a2dcd96bbf71 (diff)
parent48ad7ea299ef6313c4c6375de783f7b9442ea693 (diff)
Merge "AudioFormat: document that 24BIT is little-endian" into sc-dev
-rw-r--r--media/java/android/media/AudioFormat.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/java/android/media/AudioFormat.java b/media/java/android/media/AudioFormat.java
index c8412f214cfa..1644ec892c7e 100644
--- a/media/java/android/media/AudioFormat.java
+++ b/media/java/android/media/AudioFormat.java
@@ -310,6 +310,10 @@ public final class AudioFormat implements Parcelable {
public static final int ENCODING_LEGACY_SHORT_ARRAY_THRESHOLD = ENCODING_OPUS;
/** Audio data format: PCM 24 bit per sample packed as 3 bytes.
+ *
+ * The bytes are in little-endian order, so the least significant byte
+ * comes first in the byte array.
+ *
* Not guaranteed to be supported by devices, may be emulated if not supported. */
public static final int ENCODING_PCM_24BIT_PACKED = 21;
/** Audio data format: PCM 32 bit per sample.