diff options
| author | 2013-12-19 12:34:56 -0800 | |
|---|---|---|
| committer | 2013-12-19 13:50:54 -0800 | |
| commit | a5a42384367230b8e16cf441d5dcf4225332f9d7 (patch) | |
| tree | a3d420cbfbec8c0a4b43b877a0179ebf886650b8 /libs/hwui/Program.cpp | |
| parent | c594e9d90465d9d60447ad8aff9d07625474f69c (diff) | |
Prepare for additional formats beyond 8-bit and 16-bit PCM
Factor out code that converts from Java ENCODING_PCM_* to native
AUDIO_FORMAT_* into a new function audioFormatToNative().
Also use audio_bytes_per_sample() from <system/audio.h>
instead of hard-coding the size of various formats.
Use size_t for memory sizes.
Change-Id: Ic3525f049e939bdf125d9f87ed39abd2690dcf9f
Diffstat (limited to 'libs/hwui/Program.cpp')
0 files changed, 0 insertions, 0 deletions