summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2014-06-18 08:41:56 -0700
committerAndy Hung <hunga@google.com>2014-06-18 10:51:15 -0700
commit2854ed50254f06c9da21b8fe028b300b6ab267e2 (patch)
tree5cf9019638934b3fa7338c4c4f002cac5573c14d /media
parent40ff293a1a1ef00d0cb751d395fd86a4d8d0aec3 (diff)
downloadframeworks_base-2854ed50254f06c9da21b8fe028b300b6ab267e2.zip
frameworks_base-2854ed50254f06c9da21b8fe028b300b6ab267e2.tar.gz
frameworks_base-2854ed50254f06c9da21b8fe028b300b6ab267e2.tar.bz2
Fix AudioFormat getBytesPerSample to recognize float
Bug: 15719638 Change-Id: Id53a07ef24e4403f3bad7a13c4dd801e556769eb
Diffstat (limited to 'media')
-rw-r--r--media/java/android/media/AudioFormat.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/media/java/android/media/AudioFormat.java b/media/java/android/media/AudioFormat.java
index 4b4be1b..e05aef0 100644
--- a/media/java/android/media/AudioFormat.java
+++ b/media/java/android/media/AudioFormat.java
@@ -152,6 +152,8 @@ public class AudioFormat {
switch (audioFormat) {
case ENCODING_PCM_8BIT:
return 1;
+ case ENCODING_PCM_FLOAT:
+ return 4;
case ENCODING_PCM_16BIT:
case ENCODING_DEFAULT:
return 2;