diff options
author | Glenn Kasten <gkasten@google.com> | 2014-04-30 18:02:08 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-05-06 17:24:26 -0700 |
commit | 313f59887b1439fa2f39dbf3578407c52fcbf60d (patch) | |
tree | 8f6a896f3bcd95f6cb650a8d98788207af29a61c /core/jni | |
parent | 3b23c019cf8d78e199ac56f677a6896f9667b868 (diff) | |
download | frameworks_base-313f59887b1439fa2f39dbf3578407c52fcbf60d.zip frameworks_base-313f59887b1439fa2f39dbf3578407c52fcbf60d.tar.gz frameworks_base-313f59887b1439fa2f39dbf3578407c52fcbf60d.tar.bz2 |
Add AudioFormat.ENCODING_PCM_FLOAT
Change-Id: I030d2c74224ac8573a4d30d980ae94fa4e280aeb
Diffstat (limited to 'core/jni')
-rw-r--r-- | core/jni/android_media_AudioFormat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/jni/android_media_AudioFormat.h b/core/jni/android_media_AudioFormat.h index f4bab26..fedb1b2 100644 --- a/core/jni/android_media_AudioFormat.h +++ b/core/jni/android_media_AudioFormat.h @@ -22,6 +22,7 @@ // keep these values in sync with AudioFormat.java #define ENCODING_PCM_16BIT 2 #define ENCODING_PCM_8BIT 3 +#define ENCODING_PCM_FLOAT 4 static inline audio_format_t audioFormatToNative(int audioFormat) { @@ -30,6 +31,8 @@ static inline audio_format_t audioFormatToNative(int audioFormat) return AUDIO_FORMAT_PCM_16_BIT; case ENCODING_PCM_8BIT: return AUDIO_FORMAT_PCM_8_BIT; + case ENCODING_PCM_FLOAT: + return AUDIO_FORMAT_PCM_FLOAT; default: return AUDIO_FORMAT_INVALID; } |