summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2014-03-06 17:18:58 -0800
committerRom Lemarchand <romlem@google.com>2014-03-07 18:20:15 +0000
commit173f4995b075e67abdb1874da9f6e83fd7324a5e (patch)
treecb6610ccfcd2c6367423598b9c57a3a3c0f12fe7 /include
parent318900ad802871f2bf7f2c2f38b4c519193db519 (diff)
downloadsystem_core-173f4995b075e67abdb1874da9f6e83fd7324a5e.zip
system_core-173f4995b075e67abdb1874da9f6e83fd7324a5e.tar.gz
system_core-173f4995b075e67abdb1874da9f6e83fd7324a5e.tar.bz2
Update audio_bytes_per_sample for PCM 24 bit packed
Change-Id: Ic79f604893f5c4f2e8e35189d6638b5b160435ed Signed-off-by: Andy Hung <hunga@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/system/audio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/system/audio.h b/include/system/audio.h
index 294139d..35639b5 100644
--- a/include/system/audio.h
+++ b/include/system/audio.h
@@ -633,6 +633,9 @@ static inline size_t audio_bytes_per_sample(audio_format_t format)
case AUDIO_FORMAT_PCM_8_24_BIT:
size = sizeof(int32_t);
break;
+ case AUDIO_FORMAT_PCM_24_BIT_PACKED:
+ size = sizeof(uint8_t) * 3;
+ break;
case AUDIO_FORMAT_PCM_16_BIT:
size = sizeof(int16_t);
break;