diff options
author | Eric Laurent <elaurent@google.com> | 2014-06-10 15:39:16 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2014-06-19 09:55:54 -0700 |
commit | ce30de3553ecaaa0a85eec8a788e808630d766b4 (patch) | |
tree | fdacc8aff16100bc37aa9e83c9c798d8a5252eca /include | |
parent | b10fb88e1ea02bce8c052d51662fe2c6fd00f275 (diff) | |
download | system_core-ce30de3553ecaaa0a85eec8a788e808630d766b4.zip system_core-ce30de3553ecaaa0a85eec8a788e808630d766b4.tar.gz system_core-ce30de3553ecaaa0a85eec8a788e808630d766b4.tar.bz2 |
audio: added new audio formats.
Bug: 9428304.
Change-Id: Ife1f6968a8d079b477b5afb5e5cf544e8fe3298f
Diffstat (limited to 'include')
-rw-r--r-- | include/system/audio.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/system/audio.h b/include/system/audio.h index cc4137e..c7cd109 100644 --- a/include/system/audio.h +++ b/include/system/audio.h @@ -229,6 +229,8 @@ typedef enum { AUDIO_FORMAT_HE_AAC_V2 = 0x06000000UL, AUDIO_FORMAT_VORBIS = 0x07000000UL, AUDIO_FORMAT_OPUS = 0x08000000UL, + AUDIO_FORMAT_AC3 = 0x09000000UL, + AUDIO_FORMAT_E_AC3 = 0x0A000000UL, AUDIO_FORMAT_MAIN_MASK = 0xFF000000UL, AUDIO_FORMAT_SUB_MASK = 0x00FFFFFFUL, @@ -1009,6 +1011,9 @@ static inline bool audio_is_valid_format(audio_format_t format) case AUDIO_FORMAT_HE_AAC_V1: case AUDIO_FORMAT_HE_AAC_V2: case AUDIO_FORMAT_VORBIS: + case AUDIO_FORMAT_OPUS: + case AUDIO_FORMAT_AC3: + case AUDIO_FORMAT_E_AC3: return true; default: return false; |